-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
60,002 additions
and
76 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
c64_built | ||
memdump.hex | ||
built.hex | ||
|
||
targets | ||
foundvars | ||
labels |
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
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 |
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
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") |
Oops, something went wrong.