2024-10-27 20:50:48 +00:00
|
|
|
%import textio
|
2024-11-04 20:24:53 +00:00
|
|
|
; %import floats
|
2024-10-27 20:50:48 +00:00
|
|
|
%zeropage basicsafe
|
2024-10-18 20:22:34 +00:00
|
|
|
|
2024-11-04 03:28:27 +00:00
|
|
|
main {
|
2024-10-29 21:57:54 +00:00
|
|
|
sub start() {
|
2024-11-04 20:24:53 +00:00
|
|
|
txt.print("current banks: ")
|
|
|
|
txt.print_ubbin(c64.getbanks(), true)
|
|
|
|
txt.print("\nmemtop: ")
|
|
|
|
txt.print_uwhex(cbm.MEMTOP(0, true), true)
|
|
|
|
txt.print("\n8 bytes at $a000:\n")
|
|
|
|
for cx16.r0 in $a000 to $a007 {
|
2024-11-04 03:28:27 +00:00
|
|
|
txt.print_ubhex(@(cx16.r0), false)
|
|
|
|
txt.spc()
|
|
|
|
}
|
2024-11-04 20:24:53 +00:00
|
|
|
txt.print("\nwriting data to there, result:\n")
|
|
|
|
@($a000) = $11
|
|
|
|
@($a001) = $22
|
|
|
|
@($a002) = $33
|
|
|
|
@($a003) = $44
|
|
|
|
@($a004) = $55
|
|
|
|
@($a005) = $66
|
|
|
|
@($a006) = $77
|
|
|
|
@($a007) = $88
|
2024-11-04 03:28:27 +00:00
|
|
|
|
2024-11-04 20:24:53 +00:00
|
|
|
for cx16.r0 in $a000 to $a007 {
|
|
|
|
txt.print_ubhex(@(cx16.r0), false)
|
2024-11-04 03:28:27 +00:00
|
|
|
txt.spc()
|
|
|
|
}
|
|
|
|
txt.nl()
|
|
|
|
|
2024-11-04 20:24:53 +00:00
|
|
|
; txt.print("floating point calc: ")
|
|
|
|
; float @shared f1 = 1.0
|
|
|
|
; float @shared f2 = 7.0
|
|
|
|
; floats.print(f1/f2)
|
|
|
|
; txt.nl()
|
2024-11-03 12:26:28 +00:00
|
|
|
}
|
|
|
|
}
|