Rev 126 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: po_mmu.asm1 0000 DEVICE ZXSPECTRUM1281 0000 LABELSLIST "po_mmu.lbl" ; to check label pages2 0000 MMU 1 3, 5 ; maps slots 1, 2, 3 with pages 5, 6, 73 0000 ORG 0xBFFF4 BFFF 37 label1_p6: scf ; last byte of page 6 (in slot 2)5 C000 37 label2_p7: scf ; first byte of page 7 (in slot 3)6 C0017 C001 MMU 3 e, 0 ; page 0 into slot 3, write beyond slot will cause error8 C001 ORG 0xFFFFpo_mmu.asm(9): error: Write outside of memory slot: 655369 FFFF 3E 01 ld a,1 ; error: Write outside of memory slot: 65536 (65536 = address outside)10 000111 0001 MMU 3 n, 1 ; page 1 into slot 3, make it wrap + map next page automatically12 0001 ORG 0xFFFF ; ! also the $ address was truncated by MMU from $10001 to $0001 !13 FFFF 37 label3_p1: scf ; last byte of page 1, then wrapping back to 0xC000 with page 214 C000 37 label4_p2: scf ; first byte of page 2 at 0xC00015 C001# file closed: po_mmu.asmValue Label------ - -----------------------------------------------------------0xBFFF X label1_p60xC000 X label2_p70xFFFF X label3_p10xC000 X label4_p2