Skip to content

Commit e124426

Browse files
committed
Preprocessor tests updated
1 parent 6043f1a commit e124426

66 files changed

Lines changed: 14 additions & 801 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/functional/emook0.out

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#line 1 "emook0.bi"
2-
3-
42
ASM
5-
63
LD A,A
74
LD BC,254
85
#line 6
9-
106
end Asm
11-

tests/functional/prepro00.out

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,124 +1,48 @@
11
#line 1 "prepro00.bi"
2-
#line 1 "/zxbasic/library/attr.bas"
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
2+
#line 1 "/zxbasic/arch/zx48k/library/attr.bas"
163
#pragma push(case_insensitive)
174
#pragma case_insensitive = TRUE
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
28-
295
function attr(byval row as ubyte, byval col as ubyte) as ubyte
306
asm
31-
327
PROC
338
LOCAL __ATTR_END
34-
359
ld e, (ix+7)
3610
ld d, (ix+5)
37-
38-
3911
call __IN_SCREEN
4012
jr nc, __ATTR_END
41-
4213
call __ATTR_ADDR
4314
ld a, (hl)
44-
4515
__ATTR_END:
4616
ENDP
47-
4817
end asm
49-
5018
end function
51-
52-
53-
54-
55-
56-
57-
58-
59-
60-
61-
62-
63-
64-
6519
sub setattr(byval row as ubyte, byval col as ubyte, byval value as ubyte)
6620
asm
67-
6821
PROC
6922
LOCAL __ATTR_END
70-
7123
ld e, (ix+7)
7224
ld d, (ix+5)
73-
74-
7525
call __IN_SCREEN
7626
jr nc, __ATTR_END
77-
7827
call __ATTR_ADDR
7928
ld a, (ix+9)
8029
ld (hl), a
81-
8230
__ATTR_END:
8331
ENDP
84-
8532
end asm
86-
8733
end sub
88-
89-
90-
91-
92-
93-
94-
95-
96-
97-
98-
9934
function fastcall attraddr(byval row as ubyte, byval col as ubyte) as uinteger
10035
asm
101-
10236
pop hl
10337
ex (sp), hl
10438
ld d, a
10539
ld e, h
10640
jp __ATTR_ADDR
10741
end asm
10842
end function
109-
110-
111-
11243
#pragma pop(case_insensitive)
113-
114-
11544
#require "attr.asm"
116-
117-
11845
#require "in_screen.asm"
119-
120-
#line 119 "/zxbasic/library/attr.bas"
121-
46+
#line 119 "/zxbasic/arch/zx48k/library/attr.bas"
12247
#line 2 "prepro00.bi"
12348
PRINT "HELLO"
124-

tests/functional/prepro01.out

Lines changed: 2 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,48 @@
11
#line 1 "prepro01.bi"
2-
#line 1 "/zxbasic/library/attr.bas"
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
2+
#line 1 "/zxbasic/arch/zx48k/library/attr.bas"
163
#pragma push(case_insensitive)
174
#pragma case_insensitive = TRUE
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
28-
295
function attr(byval row as ubyte, byval col as ubyte) as ubyte
306
asm
31-
327
PROC
338
LOCAL __ATTR_END
34-
359
ld e, (ix+7)
3610
ld d, (ix+5)
37-
38-
3911
call __IN_SCREEN
4012
jr nc, __ATTR_END
41-
4213
call __ATTR_ADDR
4314
ld a, (hl)
44-
4515
__ATTR_END:
4616
ENDP
47-
4817
end asm
49-
5018
end function
51-
52-
53-
54-
55-
56-
57-
58-
59-
60-
61-
62-
63-
64-
6519
sub setattr(byval row as ubyte, byval col as ubyte, byval value as ubyte)
6620
asm
67-
6821
PROC
6922
LOCAL __ATTR_END
70-
7123
ld e, (ix+7)
7224
ld d, (ix+5)
73-
74-
7525
call __IN_SCREEN
7626
jr nc, __ATTR_END
77-
7827
call __ATTR_ADDR
7928
ld a, (ix+9)
8029
ld (hl), a
81-
8230
__ATTR_END:
8331
ENDP
84-
8532
end asm
86-
8733
end sub
88-
89-
90-
91-
92-
93-
94-
95-
96-
97-
98-
9934
function fastcall attraddr(byval row as ubyte, byval col as ubyte) as uinteger
10035
asm
101-
10236
pop hl
10337
ex (sp), hl
10438
ld d, a
10539
ld e, h
10640
jp __ATTR_ADDR
10741
end asm
10842
end function
109-
110-
111-
11243
#pragma pop(case_insensitive)
113-
114-
11544
#require "attr.asm"
116-
117-
11845
#require "in_screen.asm"
119-
120-
#line 119 "/zxbasic/library/attr.bas"
121-
46+
#line 119 "/zxbasic/arch/zx48k/library/attr.bas"
12247
#line 2 "prepro01.bi"
123-
12448
PRINT "HOLA"
125-

tests/functional/prepro02.out

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
#line 1 "prepro02.bi"
2-
3-
4-
5-
62
#line 6 "prepro02.bi"
7-
8-
9-

tests/functional/prepro03.out

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
#line 1 "prepro03.bi"
2-
3-
4-
5-
62
x
73
y
8-
9-
10-
11-

tests/functional/prepro04.out

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
#line 1 "prepro04.bi"
2-
32
#line 5 "prepro04.bi"
4-
53
#line 7 "prepro04.bi"
6-
7-

tests/functional/prepro05.out

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
#line 1 "prepro05.bi"
2-
3-
4-
5-
62
y
73
test2
8-
9-
10-
11-

tests/functional/prepro06.out

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
#line 1 "prepro06.bi"
2-
3-
4-
5-
62
func ()
7-
8-
9-
10-

tests/functional/prepro09.out

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
11
#line 1 "prepro09.bi"
2-
3-
4-
5-

tests/functional/prepro10.out

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
#line 1 "prepro10.bi"
2-
3-
42
function test(byval a as byte)
53
let test = 0
64
end function
7-

0 commit comments

Comments
 (0)