home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / z / zsim20.zip / Z80EMU.INC < prev    next >
Text File  |  1992-11-19  |  1KB  |  50 lines

  1.  
  2. ;
  3. ; (C) 1990 by Jürgen Weber
  4. ;
  5.  
  6. EXTRN bios88ret:far,z80ini:far,ctrl_break_req:far
  7. EXTRN interrupt_request:far,nmi_irq:far
  8.  
  9.  
  10. ; CS: EMULATOR CODE
  11. ; DS,ES: Z80 CODE
  12. ;
  13. ;
  14. ; Z80EMU als seperates Modul:
  15. ;
  16.  
  17. ; FAR Modul, benoetigt FAR Modul PORTIO
  18.  
  19.  
  20. ;
  21. ; Eintritt bei PUBLIC FAR bios88ret durch JMP FAR (KEINE CALLS)
  22. ;
  23. ;  SS:SP   Stack, >= 16 Words
  24. ;  DS,ES   64K Segment freier Speicher für Z80
  25.  
  26. ;  SI      zeigt auf Speicherzelle, ab der Z80 ausführen soll
  27. ;  AL      A Register
  28. ;  BX      HL
  29. ;  CX      BC
  30. ;  DX      DE
  31.  
  32. ;
  33.  
  34. ; Ausgang bei Code 76 HALT : CALL FAR prg_exit
  35. ;         bei Code EDED    : JMP  FAR bios88, AL = Folgebyte hinter EDED
  36. ; es werden bei beiden KEINE Register auf dem Stack gesichert
  37. ; nach Aufruf von ctrl_break_req wird beim nächsten Befehlsholezyklus
  38. ; ebenfalls prg_exit aufgerufen
  39.  
  40. ; ein Aufruf von nmi_irq bewirkt eine non-maskerable Interrupt Behandlung
  41. ; ein Aufruf von interrupt_request bewirkt eine Interrupt Behandlung
  42. ; des Z80 beim Befehlsholezyklus
  43. ; on entry: al contains a byte that
  44. ;   if im0 is interpreted as opcode
  45. ;   if im1 is ignored
  46. ;   if im2 is used (bit 0..6) together with I as index to introutine
  47.  
  48. ; note: zsim supports only one-byte opcodes with im0
  49.  
  50.