Rev 126 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: savedevB.asm1 0000 ; future docs designed here:2 0000 ; SAVEDEV <filename>,<startPage>,<startOffset>,<length>3 0000 ; Works only in real device emulation mode. See <link linkend="po_device">DEVICE</link>.4 0000 ;5 0000 ; Like <link linkend="po_savebin">SAVEBIN</link>, saves the block of device RAM.6 0000 ;7 0000 ; But it allows lengths over 64ki, and the offset value goes directly into device8 0000 ; virtual memory (where pages are allocated consecutively), ignoring current slot9 0000 ; "mapping". I.e. page=2,offset=0 will start saving data from page 2 at its beginning,10 0000 ; going through pages 3, 4, 5, ... until the requested length of data is saved.11 0000 ;12 0000 ; The offset is not limited to page size, i.e. arguments page=1,offset=0x500 are equal13 0000 ; to arguments page=0,offset=0x4500 for ZXSPECTRUM128 device (has page size 0x4000).14 0000 ;15 0000 DEVICE NONEsavedevB.asm(16): error: SAVEDEV only allowed in real device emulation mode (See DEVICE)16 0000 SAVEDEV "savedevB.bin",0,0,117 0000 DEVICE ZXSPECTRUM12818 0000 ; test error messages of SAVEDEV - missing argumentssavedevB.asm(19): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV19 0000 SAVEDEVsavedevB.asm(20): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV "savedevB.bin"20 0000 SAVEDEV "savedevB.bin"savedevB.asm(21): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV "savedevB.bin",21 0000 SAVEDEV "savedevB.bin",savedevB.asm(22): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV "savedevB.bin",022 0000 SAVEDEV "savedevB.bin",0savedevB.asm(23): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV "savedevB.bin",0,23 0000 SAVEDEV "savedevB.bin",0,savedevB.asm(24): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV "savedevB.bin",0,024 0000 SAVEDEV "savedevB.bin",0,0savedevB.asm(25): error: Expected syntax SAVEDEV <filename>,<startPage>,<startOffset>,<length>: SAVEDEV "savedevB.bin",0,0,25 0000 SAVEDEV "savedevB.bin",0,0,26 000027 0000 ; test error messages of SAVEDEV - wrong argumentssavedevB.asm(28): error: [SAVEDEV] page number is out of range: -128 0000 SAVEDEV "savedevB.bin",-1,0,1 ; wrong pagesavedevB.asm(29): error: [SAVEDEV] page number is out of range: 829 0000 SAVEDEV "savedevB.bin",8,0,1 ; wrong pagesavedevB.asm(30): warning: [SAVEDEV] zero length requested30 0000 SAVEDEV "savedevB.bin",0,0,0 ; should be just warning about zero length (no file)savedevB.asm(31): error: [SAVEDEV] calculated start address is out of range: -131 0000 SAVEDEV "savedevB.bin",0,-1,0 ; negative offsetsavedevB.asm(32): error: [SAVEDEV] calculated start address is out of range: -132 0000 SAVEDEV "savedevB.bin",1,-0x4001,0 ; negative offsetsavedevB.asm(33): error: [SAVEDEV] calculated start address is out of range: 13107233 0000 SAVEDEV "savedevB.bin",0,0x20000,0 ; offset beyond ZX128 memorysavedevB.asm(34): error: [SAVEDEV] calculated start address is out of range: 13107234 0000 SAVEDEV "savedevB.bin",7,0x4000,0 ; offset beyond ZX128 memorysavedevB.asm(35): error: [SAVEDEV] invalid end address (bad length?): 835 0000 SAVEDEV "savedevB.bin",0,9,-1 ; negative lengthsavedevB.asm(36): error: [SAVEDEV] invalid end address (bad length?): 13107336 0000 SAVEDEV "savedevB.bin",7,0x3FFF,2 ; length is +1 byte more than possible37 0000# file closed: savedevB.asmValue Label------ - -----------------------------------------------------------