]> git.sur5r.net Git - cc65/commitdiff
updated
authormrdudz <mrdudz@users.noreply.github.com>
Sun, 29 Nov 2015 00:24:01 +0000 (01:24 +0100)
committermrdudz <mrdudz@users.noreply.github.com>
Sun, 29 Nov 2015 00:24:01 +0000 (01:24 +0100)
include/gamate.h
libsrc/gamate/conio.s
testcode/lib/gamate/audiotest.s
testcode/lib/gamate/ctest.c
testcode/lib/gamate/lcdtest.s

index f89f5204ea8d579d3dc5daf76dd540a59f655027..7d5c02a9a482f9fc031fde22344e2aeb31013e6d 100644 (file)
@@ -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)                  */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
index 4840b372c14d30ed62cc07a0cc778b4fb77ffbe1..a43eeb1a3ecb6f40c173d926e71e00f4b3c34f32 100644 (file)
@@ -10,7 +10,6 @@
 
         .segment        "INIT"
 initconio:
-        ; FIXME
         lda     #0
         sta     LCD_XPOS
         sta     LCD_YPOS
index 0375592f3fe4061d4027821f999904947a6c1889..2fa38a500a8cb456a48791dc04d0f9b88488db23 100644 (file)
@@ -1,11 +1,11 @@
 
-;        .export reset, irq, nmi ; FIXME
-        .export _main
+; original audiotest.s by PeT (mess@utanet.at)
 
+        .export _main
         .include "gamate.inc"
 
-.zeropage
-addr: .word 0
+        .zeropage
+addr:   .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
@@ -32,7 +32,7 @@ ypos: .byte 0
 .code
 
 chars:
-.incbin "cga2.chr"
+                .incbin "cga2.chr"
 
 hex2asc:       .byte "0123456789abcdef"
 
index a953e0e6384543cac5354d7088b6e0449b849f74..da81bf240c6d7613928eb5f642d2400e475733e0 100644 (file)
@@ -10,7 +10,7 @@ unsigned short n;
 int main(int argc, char *argv[])
 {
     clrscr();
-    gotoxy(0,0);cputs("abcdABCD");
+    gotoxy(0,0);cputs("Gamate C-Test");
 
     textcolor(0);gotoxy(0,5);cputs("abcdABCD 0");
     textcolor(1);gotoxy(0,6);cputs("abcdABCD  1");
@@ -40,6 +40,8 @@ int main(int argc, char *argv[])
             case 0xff ^ JOY_DATA_FIRE_A:
                 break;
         }
+        if (y == 0xff) y = 0xc7;
+        if (y == 0xc8) y = 0;
 
         (*((unsigned char*)LCD_XPOS)) = x;
         (*((unsigned char*)LCD_YPOS)) = y;
index 617f8995957bc217c8274095fe138b067d60995c..41242a982e3809a8e9b814a93f58c43b06991971 100644 (file)
@@ -1,12 +1,14 @@
 
+; original lcdtest.s by PeT (mess@utanet.at)
+
         .export _main
-.include "gamate.inc"
+        .include "gamate.inc"
 
-.zeropage
-addr: .word 0
+        .zeropage
+addr:   .word 0
 psa:   .word 0
 
-.data
+        .data
 temp_x:        .byte 0
 temp_y:        .byte   0
 temp_a:        .byte 0