• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-cqtcocoa誰得pythonphprubygameguibathyscaphec翻訳計画中(planning stage)omegatframeworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Emily's Z80 assembler for the Gameboy.


Commit MetaInfo

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

Log Message

Fix the bit instructions.

Unfortunately, to encode the literal values with our current parser
we are kind of limited. I switched it to just use names like bit5,
set0, res7, etc. This works, but kinda sucks. Oh well.

Ändern Zusammenfassung

Diff

--- a/em_gb_asm.py
+++ b/em_gb_asm.py
@@ -491,14 +491,12 @@ for op in CB_OPS:
491491
492492 BIT_OPS = ("bit", "res", "set")
493493 for op in BIT_OPS:
494- ops = {}
495494 for n in range(0, 8):
496495 bit_ops = {}
497496 for reg, _ in LD_ARGS:
498497 bit_ops[reg] = 0xCB00 + i
499498 i += 1
500- ops[str(n)] = bit_ops
501- SOME_ARGS[op] = ops
499+ SOME_ARGS[op + str(n)] = bit_ops
502500
503501 # A few oddballs that would conflict with full overwriting above.
504502 SOME_ARGS["ld"]["a"]["(a16)"] = 0xFA