Login

Subversion Repositories NedoOS

Rev

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

# file opened: cpc.asm
 1    0000                  DEVICE AMSTRADCPC464
 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
cpc.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
cpc.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
cpc.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                  ; swap to the 6128
29    0002                  DEVICE AMSTRADCPC6128
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
cpc.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
cpc.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
cpc.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
# file closed: cpc.asm

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