mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-25 11:32:07 +00:00
Fixed fragment error. Closes #487
This commit is contained in:
parent
837ce228ac
commit
c10615b9b8
@ -1,4 +1,4 @@
|
||||
rol
|
||||
rol
|
||||
rol
|
||||
and #$02
|
||||
and #$03
|
@ -40,8 +40,9 @@ interrupt(hardware_stack) void vblank() {
|
||||
|
||||
// Tile Set (in CHR ROM)
|
||||
#pragma data_seg(Tiles)
|
||||
export char TILES[] = kickasm(resource "example.chr") {{
|
||||
export char TILES[] = kickasm(resource "example.chr", resource "sprites.chr") {{
|
||||
.import binary "example.chr"
|
||||
.import binary "sprites.chr"
|
||||
}};
|
||||
|
||||
// Sprite Buffer (in GAME RAM)
|
||||
|
@ -86,9 +86,9 @@ void lnPush(uword o, ubyte a, void* s) {
|
||||
// port: Joypad port (1 or 2)
|
||||
// result: Set of joypad flags (see below)
|
||||
//
|
||||
// TODO: ubyte lnGetPad(ubyte port);
|
||||
// TODO: enum { lfU=8, lfD=4, lfL=2, lfR=1, lfA=128, lfB=64, lfStart=16, lfSelect=32 };
|
||||
|
||||
ubyte lnGetPad(ubyte port) {
|
||||
return readJoy1();
|
||||
}
|
||||
|
||||
//
|
||||
// advanced usage
|
||||
|
@ -87,8 +87,8 @@ enum {
|
||||
// port: Joypad port (1 or 2)
|
||||
// result: Set of joypad flags (see below)
|
||||
//
|
||||
// TODO: ubyte lnGetPad(ubyte port);
|
||||
// TODO: enum { lfU=8, lfD=4, lfL=2, lfR=1, lfA=128, lfB=64, lfStart=16, lfSelect=32 };
|
||||
ubyte lnGetPad(ubyte port);
|
||||
enum { lfU=8, lfD=4, lfL=2, lfR=1, lfA=128, lfB=64, lfStart=16, lfSelect=32 };
|
||||
|
||||
//
|
||||
// advanced usage
|
||||
|
Loading…
Reference in New Issue
Block a user