MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / gen08c

Function gen08c

source/emulation/cpu/srcgen.cpp:1896–1923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1894void OPCALL move16s16_16(struct CPU* cpu, struct Op* op);
1895void OPCALL move16s16_32(struct CPU* cpu, struct Op* op);
1896void gen08c(struct GenData* data, struct Op* op) {
1897 if (op->func == movr16s16) {
1898 out(data, r16(op->r1));
1899 out(data, " = ");
1900 out(data, "cpu->segValue[");
1901 out(data, getBase(op->r2));
1902 out(data, "]; CYCLES(1);");
1903 } else if (op->func == movr32s16) {
1904 out(data, r32(op->r1));
1905 out(data, " = ");
1906 out(data, "cpu->segValue[");
1907 out(data, getBase(op->r2));
1908 out(data, "]; CYCLES(1);");
1909 } else {
1910 out(data, "writew(cpu->thread, ");
1911 if (op->func == move16s16_16) {
1912 out(data, getEaa16(op));
1913 } else if (op->func == move16s16_32) {
1914 out(data, getEaa32(op));
1915 } else {
1916 kpanic("gen08b");
1917 }
1918 out(data, ", ");
1919 out(data, "cpu->segValue[");
1920 out(data, getBase(op->r2));
1921 out(data, "]);CYCLES(1);");
1922 }
1923}
1924
1925void OPCALL lear16_32(struct CPU* cpu, struct Op* op);
1926void OPCALL lear16_16(struct CPU* cpu, struct Op* op);

Callers

nothing calls this directly

Calls 7

r16Function · 0.85
getBaseFunction · 0.85
r32Function · 0.85
getEaa16Function · 0.85
getEaa32Function · 0.85
kpanicFunction · 0.85
outFunction · 0.70

Tested by

no test coverage detected