2018-12-11 23:15:05 +00:00
|
|
|
%import c64utils
|
2019-01-12 17:11:36 +00:00
|
|
|
%import c64flt
|
2019-01-02 22:32:41 +00:00
|
|
|
|
2018-12-04 21:30:35 +00:00
|
|
|
~ main {
|
2019-01-01 20:47:19 +00:00
|
|
|
|
2019-01-05 17:02:17 +00:00
|
|
|
sub start() {
|
2019-01-06 07:17:18 +00:00
|
|
|
|
2019-01-12 20:12:17 +00:00
|
|
|
|
2019-01-13 00:07:31 +00:00
|
|
|
inlinecall(1,2,3)
|
|
|
|
ubyte r = inlinesub(3,4,5)
|
|
|
|
c64scr.print_ub(r)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
}
|
2019-01-12 20:12:17 +00:00
|
|
|
|
2019-01-13 00:07:31 +00:00
|
|
|
sub inlinecall(byte b1, byte b2, byte b3) {
|
|
|
|
float f=3.1415
|
|
|
|
c64scr.print("this is inlinecall!\n")
|
|
|
|
c64flt.print_f(f)
|
|
|
|
f*=2.0
|
|
|
|
c64flt.print_f(f)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print("end of inlinecall!\n")
|
|
|
|
}
|
2019-01-12 17:11:36 +00:00
|
|
|
|
2019-01-13 00:07:31 +00:00
|
|
|
sub inlinesub(ubyte b1, ubyte b2, ubyte b3) -> ubyte {
|
|
|
|
c64scr.print("this is inlinesub!\n")
|
|
|
|
ubyte qq = b1+b2
|
|
|
|
qq += b3
|
|
|
|
c64scr.print("end of inlinesub!\n")
|
|
|
|
return qq
|
2019-01-06 01:32:51 +00:00
|
|
|
}
|
2019-01-02 22:32:41 +00:00
|
|
|
}
|
2019-01-12 17:11:36 +00:00
|
|
|
|