Re: A86: Asm newbie question
[Prev][Next][Index][Thread]
Re: A86: Asm newbie question
At 06:52 PM 2/1/98 -0800, you wrote:
>
>I'm writing just a simple program just for the sake of learning asm.
>What I want to do is to push a number, then later pop the number and
>display it on the screen.
>
>HOWEVER
>
>it doesnt want to display this
>
>ld hl,bc ;where bc is the number i just poped
>
>
>
>Is there a different way to display a stored number? Please answer
>using SIMPLE terms :)
>
>Thanks,
> Matt Gabbert
>
>
you can't do "ld hl,bc" you have to do "ex de,hl" (or maybe switch the
order, not sure). this command exchanges the values in hl and de.
Robby Gutmann
gutmann@planet-connect.com
ICQ UIN: 724927 Agonostis on IRC
"Let's just say that if complete and utter chaos was lightning,
he'd be the sort to stand on a hilltop in a thunderstorm wearing
wet copper armour and shouting 'All gods are bastards'."
-- Rincewind discussing Twoflower
(Terry Pratchett, The Colour of Magic)
Follow-Ups:
References: