bg287

CSC205 2011 04 05 Notes

Posted in csc205 by bnmng on 2011 04/05

In Class Exercise
LDA 15, i
CPA 23, i
BRLE WHATEVER
BRANCH:YES N=1, Z=0, V=0, C=0

LDA 15,i
CPA 14,i
BRNE WHATEVER
Yes. N=0, Z=0, V=0, C=0

LDA 15,I
BREQ WHATEVER
No n=0, z=0, v=?, c=?

LDA 3,i
ANDA 12,i
No. n=0, z=1, v=?, c=?

For Test: PEP/* Page, Page 244, Page 247 Figure 6.33 page 285 and A4.
Remember which flags are affected by LDA, CPA. It’s in the handout.
BRNE Branches when the

For local, use stack addressing.
.equate means constant.

A call pushes the return address onto the run time start.
RETN n specifies the number to take off the stack before returning
0-

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: