?login_element?

Subversion Repositories NedoOS

Rev

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

  1. ; test only valid variants in this test, the invalid/error states are in ramtop.asm
  2. ; (because existence of LST file would kill the result of binary compares from .cli run)
  3. ; (and .cli is used to make the test work with gzipped binaries)
  4.     DEVICE ZXSPECTRUM128, $5D00
  5.     SAVEDEV "rt5D00.bin", 5, 0, $4000
  6.  
  7.     ; try one with stack data crossing page boundary
  8.     DEVICE ZXSPECTRUM512, $8000
  9.     SAVEDEV "rt8000.bin", 2, 0, 4*$4000
  10.  
  11.     ; try RAMTOP at the very end of memory
  12.     DEVICE ZXSPECTRUM256, $FFFF
  13.     SAVEDEV "rtFFFF.bin", 0, 0, $4000
  14.  
  15.     ; try if the stack gets relocated to VRAM in snapshot, if the default stack is damaged
  16.     DEVICE ZXSPECTRUM48, $7FFF
  17.     ORG $8000 : jr $
  18.     SAVESNA "snapDefStack.sna", $8000   ; this should go with RAMTOP stack ("jr" is just after it)
  19.     ; but saving the snapshot will modify the default stack, so check will fail second time
  20.     ; (due to adding start address at the bottom of the stack...)
  21.     SAVESNA "snapModStack.sna", $8000   ; so this should point the stack to the VRAM (!)
  22.