From f545d733d31276c11f76335108519cef4939fba0 Mon Sep 17 00:00:00 2001 From: BagoZonde Date: Thu, 14 Jan 2016 00:57:19 +0000 Subject: [PATCH] C64: 2d proof of concept demo - text displaying functionality, converting to ASCII --- Platform/C64/src/2d.asm | 8 +- .../C64/src/binary/{fonts.PRG => fonts.map} | Bin 8194 -> 8320 bytes Platform/C64/src/binary/map.asm | 8 +- Platform/C64/src/includes/drawText.asm | 123 ++++++++++++++++-- Platform/C64/src/includes/searchText.asm | 2 +- .../C64/src/includes/tables/textTables.asm | 4 +- Platform/C64/src/texts/text01.asm | 1 + Platform/C64/src/texts/text02.asm | 1 + 8 files changed, 128 insertions(+), 19 deletions(-) rename Platform/C64/src/binary/{fonts.PRG => fonts.map} (93%) create mode 100644 Platform/C64/src/texts/text01.asm create mode 100644 Platform/C64/src/texts/text02.asm diff --git a/Platform/C64/src/2d.asm b/Platform/C64/src/2d.asm index ab01d3f1..d7e9fbe1 100644 --- a/Platform/C64/src/2d.asm +++ b/Platform/C64/src/2d.asm @@ -51,6 +51,10 @@ mapOffsetPointer_HI = $34 playerPosition_LO = $35 playerPosition_HI = $36 +outputCursor = $37 +wordCursor = $38 +ignoreNextCharacterFlag = $39 + BANK_START_ADDR=$4000 ;$4000 - $7FFF SCREEN=$6000 ;Bitmap range: $6000 - $7F3F SCREEN_VIDEO_RAM=$5C00 ;Screen Video RAM range: $5C00 - $5FFF @@ -283,7 +287,8 @@ jmp * .binary "binary/colormem.PRG",2,64*4 *=FONTS -.binary "binary/fonts.PRG",2,8*26+8*26+8*3 +.binary "binary/fonts.map",0,8*8*130 + *=MAP_DATA ;.binary "binary/map.bin" ;TODO: As we have no map file yet, let's use fake map for test purposes @@ -296,3 +301,4 @@ Raster_Indicator .byte 0 Raster_Indicator_Key_Pressed .byte 0 +.byte $FF \ No newline at end of file diff --git a/Platform/C64/src/binary/fonts.PRG b/Platform/C64/src/binary/fonts.map similarity index 93% rename from Platform/C64/src/binary/fonts.PRG rename to Platform/C64/src/binary/fonts.map index 593f8b45cbf0f3018b58c38b52cec6f190b13e46..4efc0ad4fc2a55cff1e9de64c3ca2a659e62bfd3 100644 GIT binary patch delta 78 zcmZp2XmDg?*u0Ukl#$V3;>SjQgEKrl1`GxaP%!c0O!hy27#Iu;fU?Qr24~Kkv1d4N b-~*8U090ag;J^VJ2A+x1+c$4wTpFONTS+l*8-1 .next diff --git a/Platform/C64/src/texts/text01.asm b/Platform/C64/src/texts/text01.asm new file mode 100644 index 00000000..302400f6 --- /dev/null +++ b/Platform/C64/src/texts/text01.asm @@ -0,0 +1 @@ +A subtle breeze stirs dust across the dry desert floor. diff --git a/Platform/C64/src/texts/text02.asm b/Platform/C64/src/texts/text02.asm new file mode 100644 index 00000000..2120e4ec --- /dev/null +++ b/Platform/C64/src/texts/text02.asm @@ -0,0 +1 @@ +The wooden bridge rattles from the rush of water just below.