?login_element?

Subversion Repositories NedoOS

Rev

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

  1.     DEVICE ZXSPECTRUMNEXT
  2.     ; do various config commands without any NEX file being opened => errors
  3.     SAVENEX     CORE    15,15,255
  4.     SAVENEX     CFG     5,"hf",1,1
  5.     SAVENEX     BAR     1,'L','D','d'
  6.     SAVENEX     SCREEN  L2 0, 0, 0, 0
  7.     SAVENEX     SCREEN  LR 0, 0, 0, 0
  8.     SAVENEX     SCREEN  SCR
  9.     SAVENEX     SCREEN  SHC
  10.     SAVENEX     SCREEN  SHR 5
  11.     SAVENEX     BANK    5, 0
  12.     SAVENEX     SCREEN  SCR
  13.     SAVENEX     AUTO
  14.  
  15.     ; create empty NEX file with empty default LR screen
  16.     SAVENEX     OPEN    "savenexCoverage.nex"
  17.     SAVENEX     SCREEN  LR
  18.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  19.     SAVENEX     CLOSE   "nonExistentFile.bin"   ; error, file not found
  20.     ; some palette defined
  21.     SAVENEX     OPEN    "savenexCoverage.nex"
  22.     SAVENEX     SCREEN  LR 5*2, 0, 200, 0
  23.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  24.     SAVENEX     CLOSE
  25.  
  26.     ; create empty NEX file with empty default L2 screen
  27.     SAVENEX     OPEN    "savenexCoverageL2.nex" ; this will be 48+kiB source for later
  28.     SAVENEX     SCREEN  L2
  29.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  30.     SAVENEX     CLOSE
  31.  
  32.     ; create empty NEX file with empty default SCR screen
  33.     SAVENEX     OPEN    "savenexCoverage.nex"
  34.     SAVENEX     SCREEN  SCR
  35.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  36.     SAVENEX     CLOSE   "savenexCoverageL2.nex" ; exercise append of binary file
  37.  
  38.     ; create empty NEX file with empty default SHC screen
  39.     SAVENEX     OPEN    "savenexCoverage.nex"
  40.     SAVENEX     SCREEN  SHC
  41.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  42.     SAVENEX     CLOSE
  43.  
  44.     ; create empty NEX file with empty default SHR screen
  45.     SAVENEX     OPEN    "savenexCoverage.nex"
  46.     SAVENEX     SCREEN  SHR 5
  47.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  48.     SAVENEX     CLOSE
  49.     ; no hiRes colour defined, default = 0
  50.     SAVENEX     OPEN    "savenexCoverage.nex"
  51.     SAVENEX     SCREEN  SHR
  52.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  53.     SAVENEX     CLOSE
  54.     ; hiRes colour defined wrongly => warning
  55.     SAVENEX     OPEN    "savenexCoverage.nex"
  56.     SAVENEX     SCREEN  SHR 8
  57.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  58.     SAVENEX     CLOSE
  59.     ; hiRes colour defined wrongly => warning
  60.     SAVENEX     OPEN    "savenexCoverage.nex"
  61.     SAVENEX     SCREEN  SHR -1
  62.     SAVENEX     SCREEN  SCR     ; error "screen was already stored"
  63.     SAVENEX     CLOSE
  64.  
  65. ;; adding coverage tests after NEX file format V1.3 changes:
  66.     SAVENEX     CFG3    0, 0
  67.     SAVENEX     PALETTE   DEFAULT
  68.     SAVENEX     COPPER  0, 0
  69.     ; palette after some bank is stored
  70.     SAVENEX     OPEN    "savenexCoverage.nex"
  71.     SAVENEX     BANK    5
  72.     SAVENEX     PALETTE   DEFAULT
  73.     SAVENEX     CLOSE
  74.     ; valid L2 640x256 case from memory
  75.     SAVENEX     OPEN    "savenexCoverage.nex"
  76.     SAVENEX     SCREEN  L2_640
  77.     SAVENEX     CLOSE
  78.  
  79. ;; test the new error message when NEX file has banks 48+, but doesn't set 2MB required
  80.     SAVENEX     OPEN    "savenexCoverage.nex"
  81.     SAVENEX     BANK 100
  82.     SAVENEX     CLOSE   ; error about 2MB required
  83.  
  84.     SAVENEX     OPEN    "savenexCoverage.nex"
  85.     SAVENEX     CFG 0, 0, 0, 1  ; 2mb required set
  86.     SAVENEX     BANK 100
  87.     SAVENEX     CLOSE
  88.