• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Emily's Z80 assembler for the Gameboy.


Commit MetaInfo

Revision124de051f2dd562c7401d26b47b803c5aefa6b86 (tree)
Zeit2021-03-02 17:09:35
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Add !incbin

Ändern Zusammenfassung

Diff

--- a/em_gb_asm.py
+++ b/em_gb_asm.py
@@ -734,6 +734,18 @@ def assemble(block, mnemonic, operands=()):
734734 raise
735735 finally:
736736 included_names.remove(o)
737+ return+
738+
739+ if mnemonic == "!incbin":
740+ for o in operands:
741+ f = open(o, "rb")
742+ for b in f:
743+ if type(b) == str:
744+ for c in b:
745+ block.pushByte(ord(c))
746+ else:
747+ block.pushByte(b)
748+ f.close()
737749 return
738750
739751 if mnemonic[0] == '!':