Skip to content

Commit

Permalink
Added scripts, vars and info
Browse files Browse the repository at this point in the history
  • Loading branch information
picosonic committed Dec 5, 2024
1 parent 3662dad commit b12c519
Show file tree
Hide file tree
Showing 9 changed files with 60,002 additions and 76 deletions.
4 changes: 4 additions & 0 deletions C64/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
c64_built
memdump.hex
built.hex

targets
foundvars
labels
39 changes: 39 additions & 0 deletions C64/addlables.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

dizzydasm="dizzy.dasm"

./findjumps.sh "${dizzydasm}" > targets
./findbranches.sh "${dizzydasm}" >> targets
./findvars.sh "${dizzydasm}" > foundvars

cat targets | sort | uniq > labels
rm targets

exec < "${dizzydasm}"
read -r inp

while [ "$inp" != "" ]
do
# Determine address
addr=`echo "${inp}" | awk '{ print $1 }'`

# See if the address is a variable
LC_ALL=C grep -q "^${addr}$" foundvars
if [ $? -eq 0 ]
then
echo " .v${addr}"
fi

# See if the address is a target
LC_ALL=C grep -q "^${addr}$" labels
if [ $? -eq 0 ]
then
echo " .l${addr}"
fi

# Output current line
echo "${inp}" | sed 's/JMP \$/JMP l/g' | sed 's/JSR \$/JSR l/g' | sed 's/BCC \$/BCC l/g' | sed 's/BCS \$/BCS l/g' | sed 's/BEQ \$/BEQ l/g' | sed 's/BNE \$/BNE l/g' | sed 's/BMI \$/BMI l/g' | sed 's/BPL \$/BPL l/g' | sed 's/BVC \$/BVC l/g' | sed 's/BVS \$/BVS l/g'

# Read next line
read -r inp
done
21 changes: 21 additions & 0 deletions C64/data_info
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
; Ian Gray did the C64 port of 5x Dizzy games, published via Codemasters
;
; 1988 - Dizzy
; 1989 - Treasure Island
; 1990 - Fantasy World Dizzy
; 1990 - Magic Land
; 1992 - Prince of the YolkFolk

$8000 .. $80CB = roomtable
$80CC .. $A3D6 = roomdata

$A500 .. $A6FF = frmtable
$A700 .. $C387 = frmdefs

$D000 .. $D0C9 = roomnametable

????? .. ????? = stringstable

$D1C2 .. $D60D = roomnames

$D81D .. $F006 = messages (up to "NOTHING")
Loading

0 comments on commit b12c519

Please sign in to comment.