• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Emily's Z80 assembler for the Gameboy.


Commit MetaInfo

Revision00cf65e5cf456fbca3a742657737e24334c752fd (tree)
Zeit2021-03-02 17:11:14
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Fix using expression syntax in !equ/!set

Ändern Zusammenfassung

Diff

--- a/em_gb_asm.py
+++ b/em_gb_asm.py
@@ -639,7 +639,7 @@ def assemble(block, mnemonic, operands=()):
639639
640640 if mnemonic == "!equ" or mnemonic == "!set":
641641 if operands[1][0] == '{' and operands[1][-1] == '}':
642- block.equ[operands[0]] = block.eval(operands[1][1:-1])
642+ block.equ[operands[0]] = str(block.eval(operands[1][1:-1]))
643643 else:
644644 block.equ[operands[0]] = operands[1]
645645 return