??? 01/14/06 00:01 Read: times |
#107361 - First understand what you're Simulating! Responding to: ???'s previous message |
Indika Herath said:
CY ,AC ,OV were user defined functions that has the format
In VB [Name(State as Boolean)] equal in C to [void name(Bool state);] I wrote these functions to set the correct bits in PSW in the simulator. Why functions? Surely global variables would be a far more natural model?? eg, a global structure 'PSW' with fields 'CY', 'AC', 'OV', etc... Can you give me a mathematical algorithm to perform the ADD,ADDC,SUBB functions in C or Visual Basic including Altering of the state flags ? As has already been pointed out, the operation of each and every 8051 instruction is described in detail in the Programmer’s Guide and Instruction Set document - Chapter 2 of the so-called "bible" http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf ADD is on p18; ADDC is on p19; SUBB is on p52. The descriptions include all interactions with the flags. |
Topic | Author | Date |
Help about ADD/ADDC in a VB project | 01/01/70 00:00 | |
Why another Simulator ? | 01/01/70 00:00 | |
Might as well | 01/01/70 00:00 | |
did'nt like the answers? | 01/01/70 00:00 | |
First understand what you're Simulating!![]() | 01/01/70 00:00 |