Hey, I'm trying to write some code for a GBA game using ATS, meaning I plan
on not using the prelude.
In my code (at the end), I'm trying to just loop over every pixel on the
screen and set it to white, however it fails to compile due to
PMVtmpltcstmat not being defined, leading to a whole chain of errors.
How do I circumvent/avoid this problem, preferably without falling back to
using the prelude?
Thanks in advance!
extern fun
m3_write_screen(pos: size_t, col: usint) : void = "mac#"
implement
main0() =
let
fun
loop{x,y:nat | x <= y} .<y-x>.
(pos: int(x), max: int(y)) : void =
if pos < max
then
(
// m3_write_screen($UN.cast2size(pos), $UN.cast2usint(0xffff));
loop(pos + 1, max)
)
in
(
set_screen_mode($UN.cast2usint(0x403));
loop(0, 240 * 160)
)
end
--
You received this message because you are subscribed to the Google Groups
"ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ats-lang-users/2651d1f2-65ea-4bd8-b801-1b50c28807dan%40googlegroups.com.