ZX65: Simulating a Micro Page T1 *** TABLE 1 *** Functions which ZX65 requires of the host system, and their locations within the interpreter. ----------------------------------------------------------- FUNCTION ADDRESS -------- ------- 1. Test console input status --------------------- 7A2EH 2. Get single character from console ------------- 7A2BH 3. Send single character to console -------------- 7A28H 4. Select disk drive (A or B) -------------------- 7A34H 5. Home R/W head of selected drive --------------- 7A31H 6. Set disk transfer buffer address -------------- 7A3DH 7. Set sector number for next disk access -------- 7A37H 8. Set track number for next disk access --------- 7A3AH 9. Read one sector from selected drive ----------- 7A40H 10. Write one sector to selected drive ------------ 7A43H ZX65: Simulating a Micro Page T2 *** TABLE 2 *** 6502/Z80 parameter passing to/from user subroutines. ---------------------------------------------------- 6502 Register Passed as Z80 Register ------------- ------------ Accumulator ------------------- Accumulator X Index ----------------------- B Register Y Index ----------------------- C Register ZX65: Simulating a Micro Page T3 *** TABLE 3 *** Locations for "BRK" vector and user subroutine table. ----------------------------------------------------- Description Address of vector/jump ----------- ---------------------- BRK Vector ------------ 7A55H User 0 ---------------- 7A46H User 1 ---------------- 7A49H User 2 ---------------- 7A4CH User 3 ---------------- 7A4FH User 4 ---------------- 7A52H ZX65: Simulating a Micro Page T4 *** TABLE 4 *** A command summary for ZX65 (in alphabetical order) -------------------------------------------------- COMMAND FUNCTION ------- -------- C ------------- CPU register display & modify D ------------- Directory display of ZX65 files on drive B Format: FILNAM.TYP LOAD ADDR # RECORDS E ------------- Examine block of memory. System will prompt for starting address and number of bytes. G ------------- Go execute 6502 program per Current Program Counter. I ------------- Initialize a fresh disk on drive B. (Must be for- matted.) System will prompt for verification. K ------------- Kill a ZX65 file on drive B. Similar to CP/M ERA. System will prompt for file name. L ------------- Load a ZX65 file from drive B. System will prompt for file name. M ------------- Memory substitution/modification. Use to view seq- uential memory locations and update if desired. System will prompt for address. Mode will then continue in effect until a '.' is typed. R ------------- Load and run a ZX65 file from drive B, starting at the address specified in the directory. (Must be an executable 6502 program.) System will prompt for file name. S ------------- Save a ZX65 file on drive B. System will prompt for file name, starting address, and number of bytes. T ------------- Trace several 6502 instructions with display following each step. System will prompt for desired number of steps. 'SPACE' ------- Single-step command. System will execute one 6502 instruction, display the results, and stop.