Week Four Notes
Week Four Notes 3280
Popular in Computer Organization and Assembly Language
verified elite notetaker
Popular in ComputerScienence
verified elite notetaker
This 10 page Class Notes was uploaded by Courtney Walker on Friday September 18, 2015. The Class Notes belongs to 3280 at University of Missouri - Columbia taught by Michael Jurczyk in Summer 2015. Since its upload, it has received 34 views. For similar materials see Computer Organization and Assembly Language in ComputerScienence at University of Missouri - Columbia.
Reviews for Week Four Notes
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 09/18/15
Ymii MLAOOO 39MLA001 NZVC Initial 0000 80 9F F A000 C CQ 0111 After J 5002 80 39 3CCC 9003 EEC CC N STX 2x amp PC A X Y 39 MLA000 MLA001 szc Initial C000 80 9FFF AOOO 3C CC 0111 After 301 cTFP 9000 3C EC 100 HW2 Examples Conglts Instruction Address Mode 1Wf9 Lom zo 01 20 m zm w c Lam 4 15939 O t mmaO zmw m W 3 LS L b P a LAT 4 brand W Branches Branches are most often used after a comparison instruction LDAA DATA CMPA 10 BLT LOOP branch if data is less than 10 CMPA A M set CC flags discard result How does the processor decide whether to take the branch or not branches B individual flags combination of flags weoMSosU 3693 Branches dealing with individual flags BRA branch always BRN branch never BEQ branch if equal BNE branch If not equal BMI branch if minus BPL branch if plus BCS branch if carry set 800 branch if carry cleared BVS branch if overflow set BVC branch if overflow cleared Q A if ECO if N if N20 if so if l iflO to Branches dealing with combination of flags When dealing with unsigned numbers BHl branch if higher if CAV E T O BHS branch if higher or same if C O BLO branch if lower BLS branch if lower or same When dealing with signed numbers 2 s complement BGT branch ifgreater than if g ml on D I39 O BGE branch if greater or equal if N Xotx l Q BLT branch if less than if N XOQ J 4 N BLE branch if less than or equal if Z N XoltA D Branches dealing with combination of flags BLT branch if less than cases when branch is taken A M a POM I r 39 100 120 Co a cast3e ome wc1oo OMBone 39100 50 H 50 gt7 aw omeNW mro 100 20 i 60 A rasc k ng W 1 no Waf m 100 100 CC 39 CQAlt QOS39LAVAC IW Nam DC 50 QQ39 K OV6Clt3OD Branch condition N X OQwi Examples LDAA 1 CMPA I w BHI LOOP Will the branCh39 be taken LDAA 1 a CMPA BGT LOOP Will the branch be taken Examples LDAA 1 I 0000 0001 CMF A 1 e 0000 0001 BHI LOOP 0000 0010 Will the branch be taken LDAA 1 CMPA 1 BGT LOOP Will the branch be taken Pideq 593 3 Assembler Directives Beginning of comments start address of data section or program ORG 0000 declaring a constant CONST EQU 5 declaring variables in memory RMB 3 reserve 3 memory bytes declaring and initializing variables in memory FCB 12 20 declarers and initializes two 1 byte variables FDB 1234 ABCD declarers and initializes two 2 byte variables Assembler Program Program normally consists of two parts Data section Program code Both parts start with ORG statement to tell assembler where to put it in memory Program written in columns separated by either space or tab 1 Column Labels 2 Column Instruction 3 Column Instruction operands 4 Column Comment Assembler will generate two files xxxst list file containing source code machine code and any error messages xxx319 file containing actual machine code and initialization data file is used to download program onto processor board
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'