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

Function pushConstant

source/test/testCPU.cpp:270–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268#define allocDataNoFlags(var1, var2, result) {1, var1, var2, result, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, 0, 0, 0, 0, 0}
269
270void pushConstant(struct Data* data) {
271 if (data->constantWidth == 8) {
272 pushCode8(data->constant);
273 } else if (data->constantWidth == 16) {
274 pushCode16(data->constant);
275 } else if (data->constantWidth == 32) {
276 pushCode32(data->constant);
277 }
278}
279
280void assertResult(struct Data* data, CPU* cpu, int instruction, U32 resultvar1, U32 resultvar2, int r1, int r2, U32 address, int bits, bool ignoreFlags = false) {
281 if (data->useResultvar2 && data->resultvar2 != resultvar2) {

Callers 15

EbGbFunction · 0.85
GbEbFunction · 0.85
EwGwFunction · 0.85
GbEwFunction · 0.85
GbEdFunction · 0.85
GwEdFunction · 0.85
EwGwEffectiveFunction · 0.85
EdGdEffectiveFunction · 0.85
EwSwFunction · 0.85
EdSwFunction · 0.85
GwEwFunction · 0.85
EdGdFunction · 0.85

Calls 3

pushCode8Function · 0.85
pushCode16Function · 0.85
pushCode32Function · 0.85

Tested by

no test coverage detected