2019-02-12 20:53:57 +00:00
|
|
|
%import c64utils
|
2019-02-02 23:14:56 +00:00
|
|
|
%zeropage basicsafe
|
2019-01-26 21:46:01 +00:00
|
|
|
|
2019-02-02 23:14:56 +00:00
|
|
|
~ main {
|
2019-01-27 20:25:16 +00:00
|
|
|
|
2019-02-12 20:53:57 +00:00
|
|
|
; mul_word_3
|
2019-02-01 00:22:27 +00:00
|
|
|
|
2019-02-02 23:14:56 +00:00
|
|
|
sub start() {
|
2019-02-12 20:53:57 +00:00
|
|
|
|
|
|
|
byte b1
|
|
|
|
byte b2 = -3
|
|
|
|
|
|
|
|
ubyte ub1
|
|
|
|
ubyte ub2 = 4
|
|
|
|
|
|
|
|
word w1
|
|
|
|
word w2 = -499
|
|
|
|
|
|
|
|
uword uw1
|
|
|
|
uword uw2 = 1199
|
|
|
|
|
|
|
|
b1 = b2*40
|
|
|
|
ub1 = ub2*40
|
|
|
|
w1 = w2*40
|
|
|
|
uw1 = uw2*40
|
|
|
|
|
|
|
|
c64scr.print_b(b1)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(ub1)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_w(w1)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_uw(uw1)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
|
|
|
|
|
|
|
|
c64scr.print_ub(X)
|
|
|
|
c64.CHROUT('\n')
|
2019-01-31 23:50:24 +00:00
|
|
|
}
|
2019-02-01 21:51:30 +00:00
|
|
|
|
2019-01-27 17:33:21 +00:00
|
|
|
}
|