generated from TinyTapeout/tt09-verilog-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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
22 changed files
with
17,565 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
./dasm $1.asm -f3 -s$1.sym -o$1.bin -l$1.lst | ||
python convhex.py $1 >rom.mem | ||
|
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,3 @@ | ||
dasm $1.asm -f3 -s$1.sym -o$1.bin | ||
python3 convhex.py $1 >rom.mem | ||
|
Binary file added
BIN
+4 KB
roms/classics/Adventure (1980) (Atari, Warren Robinett - Sears) (CX2613 - 49-75154).bin
Binary file not shown.
Binary file added
BIN
+4 KB
...Pitfall Harry's Jungle Adventure (1982) (Activision, David Crane) (AX-018, AX-018-04).bin
Binary file not shown.
Binary file added
BIN
+4 KB
roms/classics/River Raid (1982) (Activision, Carol Shaw) (AX-020, AX-020-04).bin
Binary file not shown.
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,31 @@ | ||
import binascii | ||
import sys | ||
|
||
# Ensure there's at least one argument passed to avoid IndexError | ||
if len(sys.argv) < 2: | ||
print("Usage: script.py <filename>") | ||
sys.exit(1) | ||
|
||
i = 0 | ||
filename = sys.argv[1] + '.bin' | ||
with open(filename, 'rb') as f: | ||
content = f.read() | ||
for x in content: | ||
# Convert the integer to a bytes object of length 1 | ||
# before passing it to hexlify | ||
print(binascii.hexlify(bytes([x])).decode('utf-8')) | ||
i += 1 | ||
if i == 4096: | ||
break | ||
|
||
#import binascii | ||
#import sys | ||
#i = 0 | ||
#filename = sys.argv[1] + '.bin' | ||
#with open(filename, 'rb') as f: | ||
# content = f.read() | ||
# for x in content: | ||
# print(binascii.hexlify(x)) | ||
# i += 1 | ||
# if i == 4096: | ||
# break |
Binary file not shown.
Oops, something went wrong.