This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Table is two nibbles RLDU 0000 (Delay value not used currently.) | |
DIRECTION_TABLE: | |
.byte $80,$80,$90,$90,$10,$10,$50,$50,$40,$40,$60,$60,$20,$20,$A0,$A0 | |
;; | |
;; Change ball directions into velocities | |
;; | |
Dir2Veloc: | |
ldx #$00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b=0xFF; // Test pattern, all four sides closed. | |
for (i=0;i<6;++i) | |
{ | |
for (j=0;j<10;++j) | |
{ | |
/* Tile 1 */ | |
vram_adr(NTADR_A((j*3)+1,(i*3)+1)); | |
if (( (b & 1<<7) ) && ( (b & 1<<6) )) /* UP AND LEFT */ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* handle_player_in_field() | |
* Handle when player is on the playfield | |
*/ | |
void handle_player_in_field(void) | |
{ | |
if ((stamps[STAMP_X(i)]==PIXEL_BOX_X(a)) && (stamps[STAMP_Y(i)]==PIXEL_BOX_Y(b))) | |
{ | |
// We are aligned. | |
if (PLAYER_PAD_RIGHT(i) && stamps[STAMP_LAST_STATE(i)] != STATE_PLAYER_RIGHT && !BOX_WALL_RIGHT(d)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- mkimage 2017-09-20 19:00:12.475874204 -0700 | |
+++ mkimage-lakka 2017-09-22 21:00:41.202688640 -0700 | |
@@ -32,17 +32,9 @@ | |
exit 1 | |
fi | |
- if [ "$BOOTLOADER" = "syslinux" ]; then | |
- DISK_LABEL=gpt | |
- else | |
- DISK_LABEL=msdos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tlp.asm b/tlp.asm | |
index 30d744c..00b8227 100644 | |
--- a/tlp.asm | |
+++ b/tlp.asm | |
@@ -922,7 +922,7 @@ init_graphics: | |
sta CROSS_Y ; cross-shaped cursor. | |
sta byte_B5 ; Set priority for screen objects... | |
sta GPRIOR ; 0000 0001 = Player 0-3, Playfied 0-3, BAK | |
- lda #$16 ; $10 = rust + $06 luminance | |
+ lda #$20 ; $10 = rust + $06 luminance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(void) | |
{ | |
int i=0; | |
y=511-16; | |
deltax=8; | |
deltay=16; | |
dumb_terminal_active=1; | |
tgi_install(&c64_hi); | |
tgi_init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(void) | |
{ | |
int i=0; | |
struct ser_params params = { | |
SER_BAUD_2400, | |
SER_BITS_8, | |
SER_STOP_1, | |
SER_PAR_NONE, | |
SER_HS_NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tgi.h> | |
/** | |
* replace tgi_line with this function for slow but accurate line draw | |
*/ | |
void slow_but_accurate_line(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) | |
{ | |
int dx, dy; | |
int stepx, stepy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* screen_line_draw(Coord1, Coord2) - Draw a mode 1 line | |
*/ | |
void screen_line_draw(padPt* Coord1, padPt* Coord2) | |
{ | |
uint16_t x1=scalex[Coord1->x]; | |
uint16_t x2=scalex[Coord2->x]; | |
uint16_t y1=scaley[Coord1->y]; | |
uint16_t y2=scaley[Coord2->y]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* io_recv_serial() - Receive and interpret serial data. | |
*/ | |
void io_recv_serial(void) | |
{ | |
recv_buffer_size=PEEK(0x29B)-PEEK(0x29C)&0xff; | |
if (recv_buffer_size>175) | |
{ | |
io_send_byte(XOFF); | |
xoff_enabled=true; |
OlderNewer