carlos-aurelio/z80c

Problem to execute LD BC

Opened this issue · 1 comments

The test code and hex data is:

init: ld bc,0x1234 inc b inc c jp init

01, 34, 12, 04, 0C, C3, 00, 00

The expected result was BC = 12.34, but the result is BC=34.12

Using another simulator I confirmed the problem.
The instruction LD BC,0x1234 should set 12h at B and 34h at C.

image