Login

Subversion Repositories NedoOS

Rev

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

# file opened: zx48_and_128.asm
 1    0000                  DEVICE ZXSPECTRUM48
 2    0000
 3    0000                  SLOT 0
 4    0000                  PAGE 0
 4    0000                ORG 0x0000
 4    0000 30 30          DB "00"
 5    0002                  PAGE 1
 5    0002                ORG 0x0000
 5    0000 31 31          DB "11"
 6    0002                  PAGE 2
 6    0002                ORG 0x0000
 6    0000 32 32          DB "22"
 7    0002                  PAGE 3
 7    0002                ORG 0x0000
 7    0000 33 33          DB "33"
 8    0002
zx48_and_128.asm(9): error: [PAGE] Page number must be in range 0..3: 4
 9    0002                  PAGE 4      ; error - non-existing page (page 3 should be still visible in slot 0)
10    0002                  ASSERT {0} == "33"
11    0002
12    0002                  SLOT 1
12    0002                PAGE 0
12    0002                ASSERT {0x4000} == "00"
12    0002                PAGE 1
12    0002                ASSERT {0x4000} == "11"
13    0002                  SLOT 2
13    0002                PAGE 2
13    0002                ASSERT {0x8000} == "22"
13    0002                PAGE 3
13    0002                ASSERT {0x8000} == "33"
14    0002                  SLOT 3
14    0002                PAGE 0
14    0002                ASSERT {0xC000} == "00"
14    0002                PAGE 1
14    0002                ASSERT {0xC000} == "11"
15    0002
zx48_and_128.asm(16): error: [SLOT] Slot number must be in range 0..3, or exact starting address of slot
16    0002                  SLOT 4      ; error
17    0002
18    0002                  ; pages: 3:1:3:1
19    0002                  ORG 0xC000-2
20    BFFE 41 41 42 42      DB  "AABB"
21    C002                  ASSERT {0x4000-2} == "AA"   ; should be visible also at these addresses
22    C002                  ASSERT {0x4000} == "BB"
23    C002
24    C002                  ORG 0xFFFE
zx48_and_128.asm(25): error: Write outside of device memory at: 65536
25    FFFE 43 43 44 44      DB  "CCDD"  ; "DD" goes beyond 0x10000 -> lost (error reported)
26    0002                  ASSERT {0} == "33"          ; still page 3 there
27    0002
28    0002                  ; now try the 128 classic (should be not affected by the 48 device above)
29    0002                  DEVICE ZXSPECTRUM128
30    0002
31    0002                  SLOT 0
32    0002                  PAGE 0
32    0002                ASSERT {0} == 0
32    0002                ORG 0x0000
32    0000 30 30          DB "00"
33    0002                  PAGE 1
33    0002                ASSERT {0} == 0
33    0002                ORG 0x0000
33    0000 31 31          DB "11"
34    0002                  PAGE 2
34    0002                ASSERT {0} == 0
34    0002                ORG 0x0000
34    0000 32 32          DB "22"
35    0002                  PAGE 3
35    0002                ASSERT {0} == 0
35    0002                ORG 0x0000
35    0000 33 33          DB "33"
36    0002                  PAGE 4
36    0002                ASSERT {0} == 0
36    0002                ORG 0x0000
36    0000 34 34          DB "44"
37    0002                  PAGE 5
37    0002                ASSERT {0} == 0
37    0002                ORG 0x0000
37    0000 35 35          DB "55"
38    0002                  PAGE 6
38    0002                ASSERT {0} == 0
38    0002                ORG 0x0000
38    0000 36 36          DB "66"
39    0002                  PAGE 7
39    0002                ASSERT {0} == 0
39    0002                ORG 0x0000
39    0000 37 37          DB "77"
40    0002
zx48_and_128.asm(41): error: [PAGE] Page number must be in range 0..7: 8
41    0002                  PAGE 8      ; error - non-existing page (page 7 should be still visible in slot 0)
42    0002                  ASSERT {0} == "77"
43    0002
44    0002                  SLOT 1
44    0002                PAGE 4
44    0002                ASSERT {0x4000} == "44"
44    0002                PAGE 5
44    0002                ASSERT {0x4000} == "55"
45    0002                  SLOT 2
45    0002                PAGE 6
45    0002                ASSERT {0x8000} == "66"
45    0002                PAGE 7
45    0002                ASSERT {0x8000} == "77"
46    0002                  SLOT 3
46    0002                PAGE 4
46    0002                ASSERT {0xC000} == "44"
46    0002                PAGE 5
46    0002                ASSERT {0xC000} == "55"
47    0002
zx48_and_128.asm(48): error: [SLOT] Slot number must be in range 0..3, or exact starting address of slot
48    0002                  SLOT 4      ; error
49    0002
50    0002                  ; pages: 7:5:7:5
51    0002                  ORG 0xC000-2
52    BFFE 41 41 42 42      DB  "AABB"
53    C002                  ASSERT {0x4000-2} == "AA"   ; should be visible also at these addresses
54    C002                  ASSERT {0x4000} == "BB"
55    C002
56    C002                  ORG 0xFFFE
zx48_and_128.asm(57): error: Write outside of device memory at: 65536
57    FFFE 43 43 44 44      DB  "CCDD"  ; "DD" goes beyond 0x10000 -> lost (error reported)
58    0002                  ASSERT {0} == "77"          ; still page 7 there
59    0002
60    0002                  ; some more error states
zx48_and_128.asm(61): error: [ORG] Syntax error in <address>: &
61    0002                  ORG &
zx48_and_128.asm(61): error: Syntax error in <page_number>: &
61    0002                PAGE &
zx48_and_128.asm(61): warning[orgpage]: [ORG] page argument affects current slot while address is outside: address 0x1234 vs slot 3 range 0xC000..0xFFFF
zx48_and_128.asm(61): error: Syntax error in <page_number>: &
61    0002                ORG 0x1234, &
zx48_and_128.asm(61): error: [DISP] Syntax error in <address>: &
61    1234                DISP &
zx48_and_128.asm(61): error: [SLOT] Syntax error in <slot_number>: &
61    1234                SLOT & ; syntax errors
zx48_and_128.asm(62): error: ENT should be after DISP
62    1234                  ENT
63    1234
64    1234                  DEVICE none
zx48_and_128.asm(65): warning: PAGE only allowed in real device emulation mode (See DEVICE)
65    1234                  PAGE 1
zx48_and_128.asm(65): warning: SLOT only allowed in real device emulation mode (See DEVICE)
65    1234                SLOT 1
66    1234
# file closed: zx48_and_128.asm

Value    Label
------ - -----------------------------------------------------------