?login_element?

Subversion Repositories NedoOS

Rev

Rev 126 | Blame | Compare with Previous | Last modification | View Log | Download

  1.     DEVICE ZXSPECTRUM128 : LABELSLIST "po_mmu.lbl"  ; to check label pages
  2.     MMU 1 3, 5      ; maps slots 1, 2, 3 with pages 5, 6, 7
  3.     ORG 0xBFFF
  4. label1_p6: scf      ; last byte of page 6 (in slot 2)
  5. label2_p7: scf      ; first byte of page 7 (in slot 3)
  6.  
  7.     MMU 3 e, 0      ; page 0 into slot 3, write beyond slot will cause error
  8.     ORG 0xFFFF
  9.     ld  a,1         ; error: Write outside of memory slot: 65536 (65536 = address outside)
  10.  
  11.     MMU 3 n, 1      ; page 1 into slot 3, make it wrap + map next page automatically
  12.     ORG 0xFFFF      ; ! also the $ address was truncated by MMU from $10001 to $0001 !
  13. label3_p1: scf      ; last byte of page 1, then wrapping back to 0xC000 with page 2
  14. label4_p2: scf      ; first byte of page 2 at 0xC000
  15.