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:
Irmen de Jong
2020-09-20 23:49:36 +02:00
parent 3ff3f5e1cc
commit de06353194
92 changed files with 399 additions and 2475 deletions

View File

@@ -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')
}
}
}