Millfork: a middle-level programming language targeting 6502- and Z80-based microcomputers and home consoles
This project is maintained by KarolS
The gb_hardware
module is imported automatically on Game Boy targets.
TODO
The gb_header_small
module is imported automatically on small Game Boy targets.
It contains the default header for 32K Game Boy programs.
Provides an interface for reading joypads that is compatible with the joy
module.
alias input_a = input_btn
1 if A button pressed, 0 id not pressed.
byte input_b
1 if B button pressed, 0 id not pressed.
byte input_select
1 if Select button pressed, 0 id not pressed.
byte input_start
1 if Start button pressed, 0 id not pressed.
void read_joy()
Reads the joypad.