GIDForums  

Go Back   GIDForums > Computer Programming Forums > Assembly Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Aug-2006, 06:20
emC++ emC++ is offline
New Member
 
Join Date: Aug 2006
Posts: 8
emC++ is on a distinguished road

Does anybody know assembly language(ARM) and computer architecture basics please?


Ive got an exam on computer architecture and assembly language, Im kinda stuck on understanding what status flags mean exactly! like MOVS or ADDS or ADDCS etc!

I would greatly appreciate it if someone could explain it to me!

thx
  #2  
Old 18-Aug-2006, 09:56
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,893
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: Does anybody know assembly language(ARM) and computer architecture basics please?


Quote:
Originally Posted by emC++
Ive got an exam on computer architecture and assembly language, Im kinda stuck on understanding what status flags mean exactly! like MOVS or ADDS or ADDCS etc!

I would greatly appreciate it if someone could explain it to me!

thx

If the instruction is MOV, then the CPSR (Current Program Status Register) is not updated by the operation. If the instruction is MOVS, then the CPSR is updated. Similarly for other transfer and arithmetic/logic instructions.

The S in the source code causes bit 20 of the machine code instruction to be set, so the machine code follows the intent.

What is important about the CPSR? Well the CPSR flags N, Z, C, and V can be used by conditional branch instructions to direct program flow according to the results of the designated instructions. Or, carry out of one instruction can be used in the operation of certain subsequent operations. Stuff like that.


Regards,

Dave
 
 

Recent GIDBlogI?m Home by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:33.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.