id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
32104835_50
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_EX_DE_HL() {\n final Z80State state = new Z80State();\n state.D = 0x28;\n state.E = 0x22;\n state.H = 0x49;\n state.L = 0x9A;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xEB);\n assertEquals(0x2822, cpu.getLeft().getRegisterPair(Z80.REGPAIR_...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegisterPair(final int regPair) {\n return this.getRegisterPair(regPair, false);\n }", "class_method_signature": "Z80.getRegisterPair(final int regPair)", "constructor": false, "full_signature": "public int getRegisterPair(final int regPair)", "identifier": "getRegisterPair", "i...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_214
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DJNZ_true() {\n final Z80State state = new Z80State();\n\n state.B = 1;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0x10, 0x03);\n\n assertEquals(0x0002, cpu.getLeft().getRegister(Z80.REG_PC));\n assertEquals(0, cpu.getLeft().getRegister(Z...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_27
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_R_noZeroAndIFF2False() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.R = 0x12;\n state.F = 0xFF;\n state.iff1 = true;\n state.iff2 = false;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x5F);\n assertEquals...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_70
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SUB_n() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xD6, 0x11);\n\n assertEquals(0x18, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(FLAG_N...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_234
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_L_mIYd() {\n final Z80State state = new Z80State();\n state.IY = 0x25AF;\n this.memory[0x25C8] = (byte) 0xFE;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0x6E, 0x19);\n assertFlagsNotChanged(state, cpu.getLeft());\n assertEquals(0x00, c...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_222
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_IYh_D() {\n final Z80State state = new Z80State();\n state.D = 0xDD;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0x62);\n assertEquals(0xDD00, cpu.getLeft().getRegister(Z80.REG_IY));\n assertFlagsNotChanged(state, cpu.getLeft());\n asse...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_66
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_ADC_mIXd_flagV() {\n final Z80State state = new Z80State();\n state.A = 0x44;\n\n state.IX = 0x1234;\n state.F = 0xFF;\n\n memory[0x1238] = (byte) 0x7F;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x8E, 0x04);\n\n assertEquals(0xC4, c...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_89
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_OR_mIXd() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n state.IX = 0x1234;\n state.F = 0xFF;\n\n memory[0x1239] = 0x11;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xB6, 0x05);\n\n assertEquals(0x39, cpu.getLeft().get...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_31
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_R_A() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.R = 0;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x4F);\n assertEquals(0x48, cpu.getLeft().getRegister(Z80.REG_R));\n assertFlagsNotChanged(state, cpu.getLeft(...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_127
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DEC_mHL() {\n final Z80State state = new Z80State();\n state.H = 0x12;\n state.L = 0x34;\n state.F = 0xFF;\n\n memory[0x1234] = 0x2A;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x35);\n\n assertMemory(0x1234, 0x29);\n assertFlagsExclude...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_170
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SRL_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x1234;\n state.F = 0x00;\n\n memory[0x1230] = (byte) 0x8F;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xCB, -4, 0x3E);\n\n assertMemory(0x1230, 0x47);\n assertEquals...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_166
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SRA_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x1234;\n state.F = 0x00;\n\n memory[0x1232] = (byte) 0xB8;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xCB, -2, 0x2E);\n\n assertMemory(0x1232, 0xDC);\n assertFlagsE...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_189
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_NZ_nn_false() {\n final Z80State state = new Z80State();\n state.F = Z80.FLAG_Z;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xC2, 0x34, 0x12);\n\n assertEquals(0x0003, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotChanged(sta...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_218
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RES_4_mIXd_r() {\n final int[] codes = new int[] {0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA7};\n final int[] regs =\n new int[] {Z80.REG_B, Z80.REG_C, Z80.REG_D, Z80.REG_E, Z80.REG_H, Z80.REG_L, Z80.REG_A};\n\n for (int i = 0; i < codes.length; i++) {\n f...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_131
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DEC_SP() {\n final Z80State state = new Z80State();\n state.SP = 0x1000;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x3B);\n\n assertEquals(0x0FFF, cpu.getLeft().getRegister(Z80.REG_SP));\n assertFlagsNotChanged(state, cpu.g...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_24
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_I_noZeroAndIFF2False() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.I = 0x12;\n state.F = 0xFF;\n state.iff1 = true;\n state.iff2 = false;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x57);\n assertEquals...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_149
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RRC_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x1234;\n state.F = 0x00;\n\n memory[0x1239] = (byte) 0x31;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xCB, 0x05, 0x0E);\n\n assertMemory(0x1239, 0x98);\n assertFlag...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_237
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_H_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x25AF;\n this.memory[0x25C8] = (byte) 0xFE;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x66, 0x19);\n assertFlagsNotChanged(state, cpu.getLeft());\n assertEquals(0xFE, c...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_73
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SUB_mIY() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n\n state.IY = 0x1234;\n\n memory[0x1239] = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0x96, 0x05);\n\n assertEquals(0x18, cpu.getLeft()...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_65
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_ADC_mHL_flagV() {\n final Z80State state = new Z80State();\n state.A = 0x44;\n\n state.L = 0x34;\n state.H = 0x12;\n state.F = 0xFF;\n\n memory[0x1234] = (byte) 0x7F;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x8E);\n\n assertEquals(0x...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_221
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SET_4_mIYd_r() {\n final int[] codes = new int[] {0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE7};\n final int[] regs =\n new int[] {Z80.REG_B, Z80.REG_C, Z80.REG_D, Z80.REG_E, Z80.REG_H, Z80.REG_L, Z80.REG_A};\n\n for (int i = 0; i < codes.length; i++) {\n f...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_108
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_CPL() {\n final Z80State state = new Z80State();\n state.A = 0xB4;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x2F);\n\n assertEquals(0x4B, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(0xFF, cpu.getL...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_32
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_BC_nn() {\n final Z80State state = new Z80State();\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x01, 0x34, 0x12);\n assertEquals(0x1234, cpu.getLeft().getRegisterPair(Z80.REGPAIR_BC));\n assertFlagsNotChanged(state, cpu.getLeft());\n assertEqual...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegisterPair(final int regPair) {\n return this.getRegisterPair(regPair, false);\n }", "class_method_signature": "Z80.getRegisterPair(final int regPair)", "constructor": false, "full_signature": "public int getRegisterPair(final int regPair)", "identifier": "getRegisterPair", "i...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_49
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_POP_IY() {\n final Z80State state = new Z80State();\n state.SP = 0x1000;\n memory[0x1000] = 0x55;\n memory[0x1001] = 0x33;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0xE1);\n assertEquals(0x3355, cpu.getLeft().getRegister(Z80.REG_IY));\n ...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_124
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_INC_IYl() {\n final Z80State state = new Z80State();\n state.IY = 0xFFFF;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0x2C);\n\n assertEquals(0xFF00, cpu.getLeft().getRegister(Z80.REG_IY));\n assertEquals(8, cpu.getRigh...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_173
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RRD() {\n final Z80State state = new Z80State();\n state.A = 0x84;\n state.H = 0x50;\n state.L = 0x00;\n\n state.F = 0x00;\n\n memory[0x5000] = 0x20;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x67);\n\n assertEquals(0x80, cpu.get...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_165
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SRA_mHL() {\n final Z80State state = new Z80State();\n state.H = 0x12;\n state.L = 0x34;\n state.F = 0x00;\n\n memory[0x1234] = (byte) 0xB8;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x2E);\n\n assertMemory(0x1234, 0xDC);\n asser...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_132
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DEC_HL() {\n final Z80State state = new Z80State();\n state.H = 0x10;\n state.L = 0x00;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x2B);\n\n assertEquals(0x0FFF, cpu.getLeft().getRegisterPair(Z80.REGPAIR_HL));\n assertFl...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegisterPair(final int regPair) {\n return this.getRegisterPair(regPair, false);\n }", "class_method_signature": "Z80.getRegisterPair(final int regPair)", "constructor": false, "full_signature": "public int getRegisterPair(final int regPair)", "identifier": "getRegisterPair", "i...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_145
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RL_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x1234;\n state.F = 0x00;\n\n memory[0x1239] = (byte) 0x8F;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xCB, 0x05, 0x16);\n\n assertMemory(0x1239, 0x1E);\n assertFlags...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_28
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_R_ZeroAndIFF2True() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.R = 0x7F;\n state.F = 0xFF;\n state.iff1 = false;\n state.iff2 = true;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x5F);\n assertEquals(1,...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_112
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_CCF_Reset() {\n final Z80State state = new Z80State();\n state.A = 0x98;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x3F);\n\n assertEquals(0x98, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(Z80.FLAG_C...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_90
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_OR_mIYd() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n state.IY = 0x1234;\n state.F = 0xFF;\n\n memory[0x1239] = 0x11;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0xB6, 0x05);\n\n assertEquals(0x39, cpu.getLeft().get...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_104
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_CP_mIXd() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n\n state.IX = 0x1234;\n memory[0x1239] = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xBE, 0x05);\n\n assertEquals(0x29, cpu.getLeft().g...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_1
{ "fields": [], "file": "zxpoly-emul/src/test/java/com/igormaznitsa/zxpoly/utils/ROMLoaderTest.java", "identifier": "ROMLoaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLoadAndExtractROMFromArchiveVTRD() throws Exception {\n final RomData data = RomLoader.getROMFrom(\"http://trd.speccy.cz/emulz/UKV12F5.ZIP\");\n assertEquals(0x4000*3,data.getAsArray().length);\n assertEquals(\"48.rom\",0xAF,data.getAsArray()[0x01] & 0xFF);\n assertEqua...
{ "fields": [ { "declarator": "ROM_48 = \"48.rom\"", "modifier": "private static final", "original_string": "private static final String ROM_48 = \"48.rom\";", "type": "String", "var_name": "ROM_48" }, { "declarator": "ROM_128TR = \"128tr.rom\"", "modifier": "priv...
{ "body": "public static RomData getROMFrom(final String url) throws IOException {\n final URI uri;\n try {\n uri = new URI(url);\n } catch (URISyntaxException ex) {\n throw new IOException(\"Error in URL '\" + url + \"\\'\", ex);\n }\n final String scheme = uri.getScheme();\n final String...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_86
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_OR_C() {\n final Z80State state = new Z80State();\n state.A = 0x07;\n state.C = 0x09;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xB1);\n\n assertEquals(0x09, cpu.getLeft().getRegister(Z80.REG_C));\n assertEquals(0x0F, ...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_69
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SUB_C() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n state.C = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x91);\n\n assertEquals(0x11, cpu.getLeft().getRegister(Z80.REG_C));\n assertEquals(0x18,...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_153
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RR_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x1234;\n state.F = 0x00;\n\n memory[0x1239] = (byte) 0xDD;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xCB, 0x05, 0x1E);\n\n assertMemory(0x1239, 0x6E);\n assertFlags...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_128
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DEC_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x1234;\n state.F = 0xFF;\n\n memory[0x1239] = 0x2A;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x35, 0x05);\n\n assertMemory(0x1239, 0x29);\n assertFlagsExcludeReser...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_45
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_PUSH_AF() {\n final Z80State state = new Z80State();\n state.A = 0x22;\n state.F = 0x33;\n state.SP = 0x1007;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xF5);\n assertEquals(0x1005, cpu.getLeft().getRegister(Z80.REG_SP));\n assertMemory(0x1...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_201
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JR_nn() {\n final Z80State state = new Z80State();\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0x18, 0x03);\n\n assertEquals(0x0005, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotChanged(state, cpu.getLeft());\n\n assertEquals(12, ...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_190
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_NZ_nn_true() {\n final Z80State state = new Z80State();\n state.F = (~Z80.FLAG_Z) & 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xC2, 0x34, 0x12);\n\n assertEquals(0x1234, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotCh...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_12
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_mHL() {\n final Z80State state = new Z80State();\n state.A = 12;\n state.H = 0x12;\n state.L = 0x34;\n this.memory[0x1234] = 0x73;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x7E);\n assertEquals(0x73, cpu.getLeft().getRegister(Z80.REG_...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_186
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_NC_nn_true() {\n final Z80State state = new Z80State();\n state.F = (~Z80.FLAG_C) & 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xD2, 0x34, 0x12);\n\n assertEquals(0x1234, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotCh...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_169
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SRL_HL() {\n final Z80State state = new Z80State();\n state.H = 0x12;\n state.L = 0x34;\n state.F = 0x00;\n\n memory[0x1234] = (byte) 0x8F;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x3E);\n\n assertMemory(0x1234, 0x47);\n assert...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_240
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/disasm/Z80DisasmTest.java", "identifier": "Z80DisasmTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDecodeList() {\n final ByteArrayMemoryAccessProvider memoryProvider =\n new ByteArrayMemoryAccessProvider(new byte[] {\n (byte) 0xBB, (byte) 0x6D, (byte) 0xEF, (byte) 0x40, (byte) 0x45, (byte) 0x21,\n (byte) 0x00, (byte) 0x00, (byte) 0x22,\n ...
{ "fields": [ { "declarator": "NO_PREFIXED", "modifier": "private static final", "original_string": "private static final Z80Instruction[] NO_PREFIXED;", "type": "Z80Instruction[]", "var_name": "NO_PREFIXED" }, { "declarator": "CB_PREFIXED", "modifier": "private s...
{ "body": "public static List<Z80Instruction> decodeList(final MemoryAccessProvider memoryAccessProvider,\n final List<Z80Instruction> container,\n final int offset, final int instructionsToDecode) {\n final List<Z80Instr...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_217
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RLC_mIYd_r() {\n final int[] codes = new int[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x07};\n final int[] regs =\n new int[] {Z80.REG_B, Z80.REG_C, Z80.REG_D, Z80.REG_E, Z80.REG_H, Z80.REG_L, Z80.REG_A};\n\n for (int i = 0; i < codes.length; i++) {\n fin...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_53
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_EX_AF_AF() {\n final Z80State state = new Z80State();\n state.A = 0x10;\n state.F = 0x20;\n state.altA = 0x30;\n state.altF = 0x40;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x08);\n assertEquals(0x30, cpu.getLeft().getRegister(Z80.REG_A));...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_216
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RLC_mIXd_r() {\n final int[] codes = new int[] {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x07};\n final int[] regs =\n new int[] {Z80.REG_B, Z80.REG_C, Z80.REG_D, Z80.REG_E, Z80.REG_H, Z80.REG_L, Z80.REG_A};\n\n for (int i = 0; i < codes.length; i++) {\n fin...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_52
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_EX_mSP_IY() {\n final Z80State state = new Z80State();\n state.SP = 0x8856;\n state.IY = 0x7012;\n memory[0x8856] = 0x11;\n memory[0x8857] = 0x22;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0xE3);\n assertEquals(0x2211, cpu.getLeft().g...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_241
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80InstructionTest.java", "identifier": "Z80InstructionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompile_LD_IY_d_n() {\n final Z80Instruction ins = new Z80Instruction(\"FD36 d n LD (IY+d),n\");\n\n final byte[] compiled = ins.compile(\"ld (iy+16),87\", new Z80Instruction.ExpressionProcessor() {\n\n @Override\n public int evalExpression(final String expression...
{ "fields": [ { "declarator": "SPEC_INDEX = 0x100", "modifier": "public static final", "original_string": "public static final int SPEC_INDEX = 0x100;", "type": "int", "var_name": "SPEC_INDEX" }, { "declarator": "SPEC_OFFSET = 0x101", "modifier": "public static fi...
{ "body": "public byte[] compile(final String asm, final ExpressionProcessor expressionCalc) {\n\n final Matcher m = this.compilePattern.matcher(asm.trim());\n if (m.find()) {\n // check constants\n for (int i = 0; i < this.compileGroupTypes.length; i++) {\n final int value = this.compileGroupT...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_187
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_C_nn_false() {\n final Z80State state = new Z80State();\n state.F = (~Z80.FLAG_C) & 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xDA, 0x34, 0x12);\n\n assertEquals(0x0003, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotCh...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_168
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SRL_D() {\n final Z80State state = new Z80State();\n state.D = 0x8F;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x3A);\n\n assertEquals(0x47, cpu.getLeft().getRegister(Z80.REG_D));\n assertEquals(Z80.FLAG_C | Z80.FLAG_...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_13
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_mHL_A() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.H = 0x12;\n state.L = 0x34;\n this.memory[0x1234] = 0x33;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x77);\n assertEquals(0x48, cpu.getLeft().getRegister(Z80.RE...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_191
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_Z_nn_false() {\n final Z80State state = new Z80State();\n state.F = (~Z80.FLAG_Z) & 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xCA, 0x34, 0x12);\n\n assertEquals(0x0003, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotCh...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_44
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_PUSH_HL() {\n final Z80State state = new Z80State();\n state.H = 0x22;\n state.L = 0x33;\n state.SP = 0x1007;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xE5);\n assertEquals(0x1005, cpu.getLeft().getRegister(Z80.REG_SP));\n assertMemory(0x1...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_200
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_M_nn_true() {\n final Z80State state = new Z80State();\n state.F = Z80.FLAG_S;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xFA, 0x34, 0x12);\n\n assertEquals(0x1234, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotChanged(state...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_129
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DEC_mIYd() {\n final Z80State state = new Z80State();\n state.IY = 0x1234;\n state.F = 0xFF;\n\n memory[0x1239] = 0x2A;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0x35, 0x05);\n\n assertMemory(0x1239, 0x29);\n assertFlagsExcludeReser...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_152
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RR_mHL() {\n final Z80State state = new Z80State();\n state.H = 0x12;\n state.L = 0x34;\n state.F = 0x00;\n\n memory[0x1234] = (byte) 0xDD;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x1E);\n\n assertMemory(0x1234, 0x6E);\n assert...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_87
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_OR_n() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xF6, 0x11);\n\n assertEquals(0x39, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(Z80.FLA...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_68
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_ADC_C_flagsCH() {\n final Z80State state = new Z80State();\n state.A = 0xFF;\n state.C = 0x01;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x89);\n\n assertEquals(0x01, cpu.getLeft().getRegister(Z80.REG_C));\n assertEqua...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_105
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_CP_mIYd() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n\n state.IY = 0x1234;\n memory[0x1239] = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0xBE, 0x05);\n\n assertEquals(0x29, cpu.getLeft().g...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_0
{ "fields": [], "file": "zxpoly-emul/src/test/java/com/igormaznitsa/zxpoly/formats/ZXEMLSnapshotFormatTest.java", "identifier": "ZXEMLSnapshotFormatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSaveLoad_Snapshot() throws Exception {\n final byte [] array = loadResource(\"fh.zxp\");\n\n final ZxEmlSnapshotFormat data = new ZxEmlSnapshotFormat();\n data.read(new JBBPBitInputStream(new ByteArrayInputStream(array.clone())));\n assertArrayEquals(array, data.save())...
{ "fields": [ { "declarator": "MAGIC = 0xC0BA0100", "modifier": "public static final", "original_string": "public static final int MAGIC = 0xC0BA0100;", "type": "int", "var_name": "MAGIC" }, { "declarator": "INDEX_CPU0 = 0", "modifier": "public static final", ...
{ "body": "public byte[] save() throws IOException {\n final ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n final JBBPBitOutputStream bout = new JBBPBitOutputStream(buffer);\n this.write(bout);\n bout.close();\n return buffer.toByteArray();\n }", "class_method_signature": "ZxEmlSnapsh...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_91
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_XOR_C() {\n final Z80State state = new Z80State();\n state.A = 0x07;\n state.C = 0x09;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xA9);\n\n assertEquals(0x09, cpu.getLeft().getRegister(Z80.REG_C));\n assertEquals(0x0E,...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_113
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SCF() {\n final Z80State state = new Z80State();\n state.A = 0x98;\n state.F = FLAG_N | FLAG_H;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x37);\n\n assertEquals(0x98, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(Z80.F...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_29
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_R_NonZeroAndNegativeIFF2True() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.R = -4;\n state.F = 0xFF;\n state.iff1 = false;\n state.iff2 = true;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x5F);\n assert...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_144
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RL_mHL() {\n final Z80State state = new Z80State();\n state.H = 0x12;\n state.L = 0x34;\n state.F = 0x00;\n\n memory[0x1234] = (byte) 0x8F;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x16);\n\n assertMemory(0x1234, 0x1E);\n assert...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_133
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DEC_IX() {\n final Z80State state = new Z80State();\n state.IX = 0x1000;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x2B);\n\n assertEquals(0x0FFF, cpu.getLeft().getRegister(Z80.REG_IX));\n assertFlagsNotChanged(state,...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_164
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SRA_D() {\n final Z80State state = new Z80State();\n state.D = 0xB8;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x2A);\n\n assertEquals(0xDC, cpu.getLeft().getRegister(Z80.REG_D));\n assertFlagsExcludeReserved(Z80.FLAG...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_172
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RLD() {\n final Z80State state = new Z80State();\n state.A = 0x7A;\n state.H = 0x50;\n state.L = 0x00;\n\n state.F = 0x00;\n\n memory[0x5000] = 0x31;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x6F);\n\n assertEquals(0x73, cpu.get...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_125
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_INC_IY() {\n final Z80State state = new Z80State();\n state.IY = 0x1000;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFD, 0x23);\n\n assertEquals(0x1001, cpu.getLeft().getRegister(Z80.REG_IY));\n assertFlagsNotChanged(state,...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_48
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_POP_IX() {\n final Z80State state = new Z80State();\n state.SP = 0x1000;\n memory[0x1000] = 0x55;\n memory[0x1001] = 0x33;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0xE1);\n assertEquals(0x3355, cpu.getLeft().getRegister(Z80.REG_IX));\n ...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_33
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_DE_nn() {\n final Z80State state = new Z80State();\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x11, 0x34, 0x12);\n assertEquals(0x1234, cpu.getLeft().getRegisterPair(Z80.REGPAIR_DE));\n assertFlagsNotChanged(state, cpu.getLeft());\n assertEqual...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegisterPair(final int regPair) {\n return this.getRegisterPair(regPair, false);\n }", "class_method_signature": "Z80.getRegisterPair(final int regPair)", "constructor": false, "full_signature": "public int getRegisterPair(final int regPair)", "identifier": "getRegisterPair", "i...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_109
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_DAA() {\n final Z80State state = new Z80State();\n state.A = 0x3C;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x27);\n\n assertEquals(0x42, cpu.getLeft().getRegister(Z80.REG_A));\n assertEquals(Z80.FLAG_H | Z80.FLAG_PV, cpu....
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_64
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_ADC_N_flagV() {\n final Z80State state = new Z80State();\n state.A = 0x44;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCE, 0x7F);\n\n assertEquals(0xC4, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_220
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SET_4_mIXd_r() {\n final int[] codes = new int[] {0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE7};\n final int[] regs =\n new int[] {Z80.REG_B, Z80.REG_C, Z80.REG_D, Z80.REG_E, Z80.REG_H, Z80.REG_L, Z80.REG_A};\n\n for (int i = 0; i < codes.length; i++) {\n f...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_236
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_L_mIXd() {\n final Z80State state = new Z80State();\n state.IX = 0x25AF;\n this.memory[0x25C8] = (byte) 0xFE;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x6E, 0x19);\n assertFlagsNotChanged(state, cpu.getLeft());\n assertEquals(0x00, c...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_72
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SUB_mIX() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n\n state.IX = 0x1234;\n\n memory[0x1239] = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x96, 0x05);\n\n assertEquals(0x18, cpu.getLeft()...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_148
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RRC_mHL() {\n final Z80State state = new Z80State();\n state.H = 0x12;\n state.L = 0x34;\n state.F = 0x00;\n\n memory[0x1234] = (byte) 0x31;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x0E);\n\n assertMemory(0x1234, 0x98);\n asser...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_25
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_I_ZeroAndIFF2True() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.I = 0;\n state.F = 0xFF;\n state.iff1 = false;\n state.iff2 = true;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x57);\n assertEquals(0, cp...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_143
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RL_D() {\n final Z80State state = new Z80State();\n state.D = 0x8F;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x12);\n\n assertEquals(0x1E, cpu.getLeft().getRegister(Z80.REG_D));\n assertFlagsExcludeReserved(Z80.FLAG_...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_114
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_INC_A() {\n final Z80State state = new Z80State();\n state.A = 0x28;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x3C);\n\n assertEquals(0x29, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(Z80.FLAG_C, cp...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_96
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_CP_C_Equals() {\n final Z80State state = new Z80State();\n state.A = 0xF7;\n state.C = 0xF7;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xB9);\n\n assertEquals(0xF7, cpu.getLeft().getRegister(Z80.REG_C));\n assertEquals...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_79
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_AND_C() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n state.C = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xA1);\n\n assertEquals(0x11, cpu.getLeft().getRegister(Z80.REG_C));\n assertEquals(0x01,...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_102
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_CP_n_A_equ_Value() {\n final Z80State state = new Z80State();\n state.A = 0xFE;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xFE, 0xFE);\n\n assertEquals(0xFE, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserv...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_7
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_IXl() {\n final Z80State state = new Z80State();\n state.A = 0xFF;\n state.IX = 0x1234;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x7D);\n assertEquals(0x34, cpu.getLeft().getRegister(Z80.REG_A));\n assertEquals(0x1234, cpu.getLeft(...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_80
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_AND_C_ZeroResult() {\n final Z80State state = new Z80State();\n state.A = 0xF0;\n state.C = 0x0F;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xA1);\n\n assertEquals(0x0F, cpu.getLeft().getRegister(Z80.REG_C));\n assertE...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_155
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SLA_D() {\n final Z80State state = new Z80State();\n state.D = 0xB1;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0x22);\n\n assertEquals(0x62, cpu.getLeft().getRegister(Z80.REG_D));\n assertFlagsExcludeReserved(Z80.FLAG...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_38
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_DE_mNN() {\n final Z80State state = new Z80State();\n this.memory[0x1234] = (byte) 0xAA;\n this.memory[0x1235] = (byte) 0xBB;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xED, 0x5B, 0x34, 0x12);\n assertEquals(0xBBAA, cpu.getLeft().getRegisterPa...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegisterPair(final int regPair) {\n return this.getRegisterPair(regPair, false);\n }", "class_method_signature": "Z80.getRegisterPair(final int regPair)", "constructor": false, "full_signature": "public int getRegisterPair(final int regPair)", "identifier": "getRegisterPair", "i...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_207
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JR_NC_nn_true() {\n final Z80State state = new Z80State();\n state.F = (~Z80.FLAG_C) & 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0x30, 0x03);\n\n assertEquals(0x0005, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotChanged(...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_43
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_PUSH_DE() {\n final Z80State state = new Z80State();\n state.D = 0x22;\n state.E = 0x33;\n state.SP = 0x1007;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xD5);\n assertEquals(0x1005, cpu.getLeft().getRegister(Z80.REG_SP));\n assertMemory(0x1...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_196
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_PE_nn_true() {\n final Z80State state = new Z80State();\n state.F = Z80.FLAG_PV;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xEA, 0x34, 0x12);\n\n assertEquals(0x1234, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotChanged(sta...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_179
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SET_4_B() {\n final Z80State state = new Z80State();\n state.B = 0;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0xE0);\n\n assertEquals(0x10, cpu.getLeft().getRegister(Z80.REG_B));\n assertFlagsNotChanged(state, cpu.get...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_14
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_A_mIXd() {\n final Z80State state = new Z80State();\n state.A = 12;\n state.IX = 0x1234;\n this.memory[0x1232] = 0x73;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x7E, 0xFE);\n assertEquals(0x73, cpu.getLeft().getRegister(Z80.REG_A));\...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_180
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RES_4_B() {\n final Z80State state = new Z80State();\n state.B = 0xFF;\n state.F = 0x18;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xCB, 0xA0);\n\n assertEquals(0xEF, cpu.getLeft().getRegister(Z80.REG_B));\n assertFlagsNotChanged(state, cpu....
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_138
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_RRA() {\n final Z80State state = new Z80State();\n state.A = 0xE1;\n state.F = 0x00;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x1F);\n\n assertEquals(0x70, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(Z80.FLAG_C, cpu....
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_55
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_ADD_C_notFlagSet() {\n final Z80State state = new Z80State();\n state.A = 0x44;\n state.C = 0x11;\n\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x81);\n\n assertEquals(0x11, cpu.getLeft().getRegister(Z80.REG_C));\n assertE...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_211
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_JP_rIX() {\n final Z80State state = new Z80State();\n\n state.IX = 0x1234;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, false, 0xDD, 0xE9);\n\n assertEquals(0x1234, cpu.getLeft().getRegister(Z80.REG_PC));\n assertFlagsNotChanged(state, cpu.getLeft...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_22
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_mDE_A() {\n final Z80State state = new Z80State();\n state.A = 0x48;\n state.D = 0x12;\n state.E = 0x34;\n this.memory[0x1234] = 0x33;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0x12);\n assertEquals(0x48, cpu.getLeft().getRegister(Z80.RE...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_75
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_SBC_N() {\n final Z80State state = new Z80State();\n state.A = 0x29;\n state.F = 0xFF;\n\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDE, 0x11);\n\n assertEquals(0x17, cpu.getLeft().getRegister(Z80.REG_A));\n assertFlagsExcludeReserved(FLAG_N, ...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }
32104835_231
{ "fields": [], "file": "zxpoly-z80/src/test/java/com/igormaznitsa/z80/Z80Test.java", "identifier": "Z80Test", "interfaces": "", "superclass": "extends AbstractZ80Test" }
{ "body": "@Test\n public void testCommand_LD_IXl_D() {\n final Z80State state = new Z80State();\n state.D = 0xDD;\n final Pair<Z80, Integer> cpu = executeCommand(state, 0xDD, 0x6A);\n assertEquals(0x00DD, cpu.getLeft().getRegister(Z80.REG_IX));\n assertFlagsNotChanged(state, cpu.getLeft());\n asse...
{ "fields": [ { "declarator": "REG_A = 0", "modifier": "public static final", "original_string": "public static final int REG_A = 0;", "type": "int", "var_name": "REG_A" }, { "declarator": "REG_F = 1", "modifier": "public static final", "original_string": "p...
{ "body": "public int getRegister(final int reg) {\n return this.getRegister(reg, false);\n }", "class_method_signature": "Z80.getRegister(final int reg)", "constructor": false, "full_signature": "public int getRegister(final int reg)", "identifier": "getRegister", "invocations": [ "getRegister" ]...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32104835, "size": 23159, "stargazer_count": 44, "stars": null, "updates": null, "url": "https://github.com/raydac/zxpoly" }