mirror of
https://github.com/irmen/prog8.git
synced 2025-08-03 23:27:04 +00:00
auto select correct library to import based on target, instead of having c64- and cx16- prefix variants
some programs are now 100% source compatible between C64 and Cx16 targets! import libraries have been rena;med
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
%import c64lib
|
||||
%import c64textio
|
||||
%import textio
|
||||
%zeropage basicsafe
|
||||
|
||||
; Note: this program is compatible with C64 and CX16.
|
||||
|
||||
main {
|
||||
|
||||
sub start() {
|
||||
@@ -40,28 +41,28 @@ main {
|
||||
word ww
|
||||
for ub in uba {
|
||||
txt.print_ub(ub)
|
||||
c64.CHROUT(',')
|
||||
txt.chrout(',')
|
||||
}
|
||||
c64.CHROUT('\n')
|
||||
txt.chrout('\n')
|
||||
|
||||
for uw in uwa {
|
||||
txt.print_uw(uw)
|
||||
c64.CHROUT(',')
|
||||
txt.chrout(',')
|
||||
}
|
||||
c64.CHROUT('\n')
|
||||
txt.chrout('\n')
|
||||
|
||||
for bb in ba {
|
||||
txt.print_b(bb)
|
||||
c64.CHROUT(',')
|
||||
txt.chrout(',')
|
||||
}
|
||||
c64.CHROUT('\n')
|
||||
txt.chrout('\n')
|
||||
|
||||
for ww in wa {
|
||||
txt.print_w(ww)
|
||||
c64.CHROUT(',')
|
||||
txt.chrout(',')
|
||||
}
|
||||
c64.CHROUT('\n')
|
||||
c64.CHROUT('\n')
|
||||
txt.chrout('\n')
|
||||
txt.chrout('\n')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user