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)
Code:
LDA =100 ;ACC<- 100
STA* LOCATION ;Mem[LOCATION] <- ACC
HLT
LOCATION BSC 1000 ;LOCATION <- 1000
----------------------------------
Code:
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