updated
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (w) 2015 Groepaz/Hitmen (groepaz@gmx.net) */
|
/* (w) 2015 Groepaz/Hitmen (groepaz@gmx.net) */
|
||||||
/* based on technical reference by PeT (mess@utanet.at) */
|
/* based on technical reference by PeT (mess@utanet.at) */
|
||||||
/* */
|
/* */
|
||||||
/* This software is provided 'as-is', without any expressed or implied */
|
/* This software is provided 'as-is', without any expressed or implied */
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
.segment "INIT"
|
.segment "INIT"
|
||||||
initconio:
|
initconio:
|
||||||
; FIXME
|
|
||||||
lda #0
|
lda #0
|
||||||
sta LCD_XPOS
|
sta LCD_XPOS
|
||||||
sta LCD_YPOS
|
sta LCD_YPOS
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
; .export reset, irq, nmi ; FIXME
|
; original audiotest.s by PeT (mess@utanet.at)
|
||||||
|
|
||||||
.export _main
|
.export _main
|
||||||
|
|
||||||
.include "gamate.inc"
|
.include "gamate.inc"
|
||||||
|
|
||||||
.zeropage
|
.zeropage
|
||||||
addr: .word 0
|
addr: .word 0
|
||||||
psa: .word 0
|
psa: .word 0
|
||||||
|
|
||||||
.word 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0 ; get out of sensitiv area
|
.word 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0 ; get out of sensitiv area
|
||||||
@@ -32,7 +32,7 @@ ypos: .byte 0
|
|||||||
.code
|
.code
|
||||||
|
|
||||||
chars:
|
chars:
|
||||||
.incbin "cga2.chr"
|
.incbin "cga2.chr"
|
||||||
|
|
||||||
hex2asc: .byte "0123456789abcdef"
|
hex2asc: .byte "0123456789abcdef"
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ unsigned short n;
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
clrscr();
|
clrscr();
|
||||||
gotoxy(0,0);cputs("abcdABCD");
|
gotoxy(0,0);cputs("Gamate C-Test");
|
||||||
|
|
||||||
textcolor(0);gotoxy(0,5);cputs("abcdABCD 0");
|
textcolor(0);gotoxy(0,5);cputs("abcdABCD 0");
|
||||||
textcolor(1);gotoxy(0,6);cputs("abcdABCD 1");
|
textcolor(1);gotoxy(0,6);cputs("abcdABCD 1");
|
||||||
@@ -40,6 +40,8 @@ int main(int argc, char *argv[])
|
|||||||
case 0xff ^ JOY_DATA_FIRE_A:
|
case 0xff ^ JOY_DATA_FIRE_A:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (y == 0xff) y = 0xc7;
|
||||||
|
if (y == 0xc8) y = 0;
|
||||||
|
|
||||||
(*((unsigned char*)LCD_XPOS)) = x;
|
(*((unsigned char*)LCD_XPOS)) = x;
|
||||||
(*((unsigned char*)LCD_YPOS)) = y;
|
(*((unsigned char*)LCD_YPOS)) = y;
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
|
|
||||||
|
; original lcdtest.s by PeT (mess@utanet.at)
|
||||||
|
|
||||||
.export _main
|
.export _main
|
||||||
.include "gamate.inc"
|
.include "gamate.inc"
|
||||||
|
|
||||||
.zeropage
|
.zeropage
|
||||||
addr: .word 0
|
addr: .word 0
|
||||||
psa: .word 0
|
psa: .word 0
|
||||||
|
|
||||||
.data
|
.data
|
||||||
temp_x: .byte 0
|
temp_x: .byte 0
|
||||||
temp_y: .byte 0
|
temp_y: .byte 0
|
||||||
temp_a: .byte 0
|
temp_a: .byte 0
|
||||||
|
|||||||
Reference in New Issue
Block a user