2023-03-22 21:00:21 +00:00
|
|
|
%import textio
|
|
|
|
%zeropage basicsafe
|
|
|
|
|
|
|
|
|
2022-10-22 11:33:35 +00:00
|
|
|
main {
|
2023-03-22 21:00:21 +00:00
|
|
|
sub start() {
|
|
|
|
|
2023-03-29 21:46:44 +00:00
|
|
|
ubyte ub1 = 100
|
|
|
|
ubyte ub2 = 13
|
|
|
|
ubyte ubd
|
|
|
|
ubyte ubr
|
|
|
|
divmod(ub1, ub2, ubd, ubr)
|
|
|
|
txt.print_ub(ubd)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_ub(ubr)
|
|
|
|
txt.nl()
|
2023-03-22 21:00:21 +00:00
|
|
|
|
2023-03-29 21:46:44 +00:00
|
|
|
uword uw1 = 10000
|
|
|
|
uword uw2 = 900
|
|
|
|
uword uwd
|
|
|
|
uword uwr
|
|
|
|
divmodw(uw1, uw2, uwd, uwr)
|
|
|
|
txt.print_uw(uwd)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uw(uwr)
|
|
|
|
txt.nl()
|
2023-03-22 21:00:21 +00:00
|
|
|
|
2023-03-18 23:24:05 +00:00
|
|
|
}
|
2022-12-04 15:02:58 +00:00
|
|
|
}
|