?login_element?

Subversion Repositories NedoOS

Rev

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

  1.  
  2.     DEVICE ZXSPECTRUMNEXT
  3.  
  4.     ; empty infinite loop as code
  5.     ORG $C000
  6.     di
  7.     jr  $
  8.  
  9.     ;; OPEN <filename>[,<startAddress>,<stackAddress>[,<entryBank 0..111>]]
  10.     SAVENEX     OPEN    "savenexBmpL2.nex", $C000, $F000
  11.     ;; CORE <major 0..15>,<minor 0..15>,<subminor 0..255>
  12.     SAVENEX     CORE    2,0,0
  13.     ;; CFG <border 0..7>[,<fileHandle 0/1/$4000+>[,<PreserveNextRegs 0/1>[,<2MbRamReq 0/1>]]]
  14.     SAVENEX     CFG     0, 0, 0, 0
  15.     ;; BAR <loadBar 0/1>,<barColour 0..255>[,<startDelay 0..255>[,<bankDelay 0..255>]]
  16.     SAVENEX     BAR     0,  0
  17.  
  18.     ;; SAVENEX SCREEN BMP <filename>[,<savePalette 0/1>]
  19.     ; errors - [un]expected arguments
  20.     SAVENEX     SCREEN  BMP
  21.     SAVENEX     SCREEN  BMP , 0
  22.     SAVENEX     SCREEN  BMP 9 ,
  23.  
  24.     ; errors - missing file / invalid files
  25.     SAVENEX     SCREEN  BMP "missing file . bmp"
  26.     SAVENEX     SCREEN  BMP "savenexBmpL2/savenexBmpL2_16color.bmp", 0
  27.     SAVENEX     SCREEN  BMP "savenexBmpL2/savenexBmpL2_256x8.bmp", 0    ;.. shouldn't warn about colors because savePalette = 0
  28.     SAVENEX     SCREEN  BMP "savenexBmpL2/savenexBmpL2_256x8.bmp", 1    ; ok - to suppres "only 10 color" warning
  29.  
  30.     ; correct one (with warning)
  31.     SAVENEX     SCREEN  BMP "savenexBmpL2/savenexBmpL2.bmp", 2  ; will warn: savePalette=2
  32.  
  33.     SAVENEX     BANK    0
  34.  
  35.     ; revisit screen errors - here no screen should work because bank was written already
  36.     SAVENEX     SCREEN  BMP "savenexBmpL2/savenexBmpL2.bmp"
  37.  
  38.     SAVENEX     CLOSE
  39.