EASy68K  
It is currently Wed Jun 03, 2020 3:28 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: input 3 numbers
PostPosted: Thu May 02, 2013 2:45 pm 
Offline

Joined: Thu May 02, 2013 2:40 pm
Posts: 1
im VERY new to 68k
i cant seem to figure out how to prompt user to input exactly 3 numbers (set parameter)
so far the best i can do is prompt user to enter a char then repeat that.


Code:
START:                  ; first instruction of program
    org $1000
    move.l #$7ffe,sp ;initialise stack pointer
; read char from keyboard
    move.b #5,d0 ;want O/S to do INCH
    trap #15 ;call O/S, reads char into d1
;display the read char
    move.b #6,d0 ;want O/S to do OUTCH
    trap #15 ;call O/S, displays d1 contents
;stop program
    move.b #9,d0 ;want O/S to EXIT program
    trap #15 ;call O/S
    end

{Admin: Use the code tag around source.}


Top
 Profile  
 
 Post subject: Re: input 3 numbers
PostPosted: Thu May 02, 2013 7:01 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1122
Task 4, Read a number from the,keyboard into D1.L

_________________
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 14 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:  
cron
Powered by phpBB® Forum Software © phpBB Group