Small Computer Workshop bug.

79 views
Skip to first unread message

Derry UK

unread,
May 17, 2022, 6:13:49 AM5/17/22
to retro-comp
While womdering why my binary to decimal code wasn't working correctly I discovered the following:

LD BC,-10000 should generate 01 F0 D8 machine code with SCW I get 01 F0 D9, similarly

LD BC,-1000      01 18 FC    SCW->    01 18 FD
LD BC,-100        01 9C FF     SCW->    01 9C 00
LD BC,-10           01 F6 FF     SCW->    01 F6 00

I checked SCW against Z80ASM and that generates the code I was expecting.

The workaround for me is to use LD BC,D8F0 etc.

Derry.

Steve Cousins

unread,
May 17, 2022, 9:29:36 AM5/17/22
to retro-comp
Hi Derry,

Yes, there are lots of bugs in SCW. It is unfinished, to say the least, but once you get the hang of the "unique features" it does get the job done.  I used it to develop SCM so it mostly works.

Also, be aware that the Z80 simulator is not complete. For example, the parity flag is not implemented.

One day I'll get back to fixing the issues and adding functions. Too many things to do...

Steve

Reply all
Reply to author
Forward
0 new messages