mirror of
https://github.com/holub/mame
synced 2025-04-18 22:49:58 +03:00
even better - we can use 'return' without 'leave:' now
Some checks are pending
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Waiting to run
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Waiting to run
CI (macOS) / build-macos (push) Waiting to run
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Waiting to run
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Waiting to run
Some checks are pending
CI (Linux) / build-linux (-U_FORTIFY_SOURCE, gcc, gcc, g++, mametiny, tiny) (push) Waiting to run
CI (Linux) / build-linux (clang, clang, clang++, mame, mame) (push) Waiting to run
CI (macOS) / build-macos (push) Waiting to run
CI (Windows) / build-windows (clang, clang, clang++, mametiny, tiny) (push) Waiting to run
CI (Windows) / build-windows (gcc, gcc, g++, mame, mame) (push) Waiting to run
This commit is contained in:
parent
064b1f2051
commit
958a6268d2
@ -679,7 +679,7 @@ ffff
|
|||||||
}
|
}
|
||||||
if (m_icount > 0)
|
if (m_icount > 0)
|
||||||
m_icount = 0;
|
m_icount = 0;
|
||||||
goto leave;
|
return;
|
||||||
} else if (m_busack_state) {
|
} else if (m_busack_state) {
|
||||||
m_busack_state = 0;
|
m_busack_state = 0;
|
||||||
m_busack_cb(0);
|
m_busack_cb(0);
|
||||||
|
@ -74,7 +74,7 @@ class Opcode:
|
|||||||
to_step = "0x%s" % (hex(256 + step)[3:])
|
to_step = "0x%s" % (hex(256 + step)[3:])
|
||||||
il.print("if (m_icount <= 0) {", f)
|
il.print("if (m_icount <= 0) {", f)
|
||||||
il.print(" m_ref = (m_ref & 0xffff00) | %s;" % (to_step), f)
|
il.print(" m_ref = (m_ref & 0xffff00) | %s;" % (to_step), f)
|
||||||
il.print(" goto leave;", f)
|
il.print(" return;", f)
|
||||||
il.print("}", f)
|
il.print("}", f)
|
||||||
il.print("[[fallthrough]];", f)
|
il.print("[[fallthrough]];", f)
|
||||||
print("\t\tcase %s:" % (to_step), file=f)
|
print("\t\tcase %s:" % (to_step), file=f)
|
||||||
@ -92,7 +92,7 @@ class Opcode:
|
|||||||
step += 1
|
step += 1
|
||||||
to_step = "0x%s" % (hex(256 + step)[3:])
|
to_step = "0x%s" % (hex(256 + step)[3:])
|
||||||
il.print(" m_ref = (m_ref & 0xffff00) | %s;" % (to_step), f)
|
il.print(" m_ref = (m_ref & 0xffff00) | %s;" % (to_step), f)
|
||||||
il.print(" goto leave;", f)
|
il.print(" return;", f)
|
||||||
il.print("}", f)
|
il.print("}", f)
|
||||||
il.print("[[fallthrough]];", f)
|
il.print("[[fallthrough]];", f)
|
||||||
print("\t\tcase %s:" % (to_step), file=f)
|
print("\t\tcase %s:" % (to_step), file=f)
|
||||||
@ -223,7 +223,7 @@ class OpcodeList:
|
|||||||
print("if (m_wait_state)", file=f)
|
print("if (m_wait_state)", file=f)
|
||||||
print("{", file=f)
|
print("{", file=f)
|
||||||
print(" m_icount = 0; // stalled", file=f)
|
print(" m_icount = 0; // stalled", file=f)
|
||||||
print(" goto leave;", file=f)
|
print(" return;", file=f)
|
||||||
print("}", file=f)
|
print("}", file=f)
|
||||||
print("start:", file=f)
|
print("start:", file=f)
|
||||||
print("switch (u8(m_ref >> 16)) // prefix", file=f)
|
print("switch (u8(m_ref >> 16)) // prefix", file=f)
|
||||||
@ -256,7 +256,6 @@ class OpcodeList:
|
|||||||
print("", file=f)
|
print("", file=f)
|
||||||
print("m_ref = 0xffff00;", file=f)
|
print("m_ref = 0xffff00;", file=f)
|
||||||
print("goto rop;", file=f)
|
print("goto rop;", file=f)
|
||||||
print("leave: ;", file=f)
|
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
if len(argv) != 3 and len(argv) != 4:
|
if len(argv) != 3 and len(argv) != 4:
|
||||||
|
Loading…
Reference in New Issue
Block a user