?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.     DEVICE NOSLOT64K
  2.     ; check default page mapping 0 (and ORG 0) - write marker
  3.     DB  "00"
  4.     ; verify defaut is slot 0 (the only slot)
  5.     PAGE 2 : ASSERT {0x0000} == 0 : ORG 0x0000 : DB "22"
  6.     PAGE 3 : ASSERT {0x0000} == 0 : ORG 0x0000 : DB "33"
  7.     ; verify there is single slot and 32 pages
  8.     SLOT 1      ; error
  9.     PAGE 32     ; error
  10.     ; do few more verifications, reading previously modified pages
  11.     SLOT 0 : PAGE 0 : ASSERT {0x0000} == "00"
  12.     SLOT 0 : PAGE 2 : ASSERT {0x0000} == "22"
  13.     SLOT 0 : PAGE 3 : ASSERT {0x0000} == "33"
  14.  
  15.     PAGE -1     ; error
  16.  
  17.     ; try wrap-around MMU mapping, filling 80kiB
  18.     MMU 0 n, 4, $E000
  19.     ASSERT 4 == $$
  20.     BLOCK 80*1024, $44
  21.     ASSERT 6 == $$
  22.