NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt)
|
04-24-2024, 05:37 PM
Post: #7
|
|||
|
|||
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt)
(04-04-2024 07:31 AM)ThomasF Wrote: Using the following code, I could verify with all examples in previous traces! On my request Thomas made an additional test with the ?A<C and ?A<B opcodes. Like on other CPU's the compare function base on a subtraction without saving the result. So ?A<C base on the subtraction of A-C and has the same side effects on the Carry Flag like A=A-C. So the less function for the NUT CPU could be implemented as: Code: void bcd_less(char *p1, char *p2, int n) The complete source code of V41 R9L with a reference implementation is now available. Christoph |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - ThomasF - 04-02-2024, 10:20 AM
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - ThomasF - 04-02-2024, 10:22 AM
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - Christoph Giesselink - 04-03-2024, 09:54 AM
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - ThomasF - 04-03-2024, 11:34 AM
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - Christoph Giesselink - 04-03-2024, 05:26 PM
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - ThomasF - 04-04-2024, 07:31 AM
RE: NUT CPU BCD arithmetics in SETDEC mode (aka Goose hunt) - Christoph Giesselink - 04-24-2024 05:37 PM
|
User(s) browsing this thread: 2 Guest(s)