...

View Full Version : Assembly language anyone? (with comments)



KULP
03-20-2013, 05:46 PM
I've got two small, similar questions. Would the following segments of code store 100 into memory location 1000? Or anything even close/similar to that? Just wondering if my logic makes sense.. (two separate segments)



LDA =100 ;ACC<- 100
STA* LOCATION ;Mem[LOCATION] <- ACC
HLT
LOCATION BSC 1000 ;LOCATION <- 1000


----------------------------------


LDX =100, 1 ;IR 1 <- 100
STX* LOCATION, 1 ;Mem[LOCATION] <- IR 1
HLT
LOCATION BSC 1000 ;LOCATION <- 1000


----------------------------------

Also, would 16 bits in both MAR and MBR give 64k, 16 bit memory locations?

PS: Look at the pretty spacing (oooo, aweeeee)! I tried really hard :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum