Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    168
    Thanks
    5
    Thanked 11 Times in 11 Posts

    Assembly language anyone? (with comments)

    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
    Last edited by KULP; 03-20-2013 at 06:02 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •