mirror of
https://github.com/irmen/prog8.git
synced 2024-11-20 03:32:05 +00:00
test
This commit is contained in:
parent
e6d945f835
commit
d819aa270f
@ -17,35 +17,5 @@ main {
|
||||
|
||||
sub start() {
|
||||
|
||||
ubyte edgeIdx=0
|
||||
ubyte i
|
||||
|
||||
; TODO the following gives the correct output:
|
||||
for i in 2 downto 0 {
|
||||
ubyte e1
|
||||
ubyte e2
|
||||
e1 = edgeIdx
|
||||
edgeIdx ++
|
||||
e2 = edgeIdx
|
||||
edgeIdx ++
|
||||
txt.print_ub(e1)
|
||||
c64.CHROUT(',')
|
||||
txt.print_ub(e2)
|
||||
c64.CHROUT('\n')
|
||||
}
|
||||
|
||||
c64.CHROUT('\n')
|
||||
edgeIdx=0
|
||||
; TODO however with inline vardecl initializers the result is WRONG:
|
||||
for i in 2 downto 0 {
|
||||
ubyte e1 = edgeIdx
|
||||
edgeIdx++
|
||||
ubyte e2 = edgeIdx
|
||||
edgeIdx++
|
||||
txt.print_ub(e1)
|
||||
c64.CHROUT(',')
|
||||
txt.print_ub(e2)
|
||||
c64.CHROUT('\n')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user