Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-20-2013, 05:46 PM   PM User | #1
KULP
Regular Coder

 
Join Date: Mar 2012
Posts: 166
Thanks: 5
Thanked 11 Times in 11 Posts
KULP is an unknown quantity at this point
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..
KULP is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:37 AM.


Advertisement
Log in to turn off these ads.