EASy68K  
It is currently Wed Sep 19, 2018 5:34 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Nov 05, 2009 7:13 pm 
Offline

Joined: Tue Jun 02, 2009 8:00 am
Posts: 6
Location: malaysia
add.b #5,d3
move.b d3,d1
move.b #6,d0
trap #15

i wanna show the out put of 5 that i store in the d3 stack.
please help. tq


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 06, 2009 1:08 am 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1080
d3 is not a stack. d3 is a 32 bit data register.

add.b #5,d3 adds 5 to the current number in d3

Code:
        move.b  d3,d1
        move.b  #6,d0  displays the ASCII character from d3
        trap    #15


If you want to display the number in d3 use the following:
Code:
        move.b  d3,d1
        move.b  #3,d0
        trap    #15

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group