1
0
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:
jespergravgaard 2020-07-05 18:49:37 +02:00
parent 837ce228ac
commit c10615b9b8
4 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
rol
rol
rol
and #$02
and #$03

View File

@ -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)

View File

@ -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

View File

@ -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