Jump to content

how to make data to become address

- - - - -

  • Please log in to reply
8 replies to this topic

#1
lam86

lam86

    Newbie

  • Members
  • Pip
  • 3 posts
I have two data in the program. One is 97 and one is 05. I would like to put 05 into the address 97. How can I write in the Little Man's computer.
Thanks!:love:

#2
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
...little mans computer...?
What assembler?

#3
lam86

lam86

    Newbie

  • Members
  • Pip
  • 3 posts
I meant how to put the data 5 into the address 97 using Little Man's Computer Program as shown below:

91 DAT 97
92 DAT 05

After executing, the value 05 in address 92 will put into the adddress 97

Can you help me to solve this program?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,822 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
What is "Little Man's Computer Program"?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Scruffy

Scruffy

    Newbie

  • Members
  • Pip
  • 1 posts
Little man computer - Wikipedia, the free encyclopedia

It's a computer model developed in 65 and is now used to teach mechine theory.

#6
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,705 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Wait...it looks like you've already solved your problem. What's your question?
sudo rm -rf /

#7
lam86

lam86

    Newbie

  • Members
  • Pip
  • 3 posts
You can just treat as a Assembly Language to do:
Let me post the question again:
We have two data
90 DAT 05
91 DAT 97
How can I store value 5 into the address(value) that I store in 91(97)?:D

#8
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,705 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Load from address 90 into the accumulator, then store from the accumulator into address 91.
sudo rm -rf /

#9
thepungra

thepungra

    Newbie

  • Members
  • Pip
  • 1 posts
it is useful. Thanks so much

Edited by Jaan, 29 October 2009 - 01:57 AM.
No advertising





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users