Thread: Help with assembly language
-
October 19th, 2009, 11:08 PM #1
Help with assembly language
I've got a program due Thursday, and part of the requirements is that we prompt the user for some info and then read it in from the keyboard. However, our book doesn't tell us how to do that, and neither has our instructor. *NOTE: I'm not asking for someone to do this for me!*
Any help?
-
October 20th, 2009, 09:25 AM #2
Are you talking Mainframe or PC assembler?
How many assembler programs have you written?
YOU LUCKY DOG!!
Assembler was and is my all time favorite language to code in!!
Basically, you might have something like this (part code, part psuedo-code)
db user_prompt "Please Enter Your data 0x10 0x13";
db user_buffer 100; -- not sure on that syntax
// Use DOS interupt xx to write message to screen
move message to appropriate register
move 10h to ax; -- or whatever function the display to screen uses
int 21h -- call the interupt to display message
// Use DOS interupt xx to read data from keyboard (STDIO <Standard Input/Output)
move message to appropriate register
move 11h to ax; -- or whatever function to read from keyboard
you'll have to find which register to use and move the ADDRESS of "user_buffer" to it
int 22h -- call the interupt to read in user dataLast edited by Rootstonian; October 20th, 2009 at 09:27 AM.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
addition/subtraction algorithms implementation on DSP processor in assembly language
By Indian in forum Processors, Memory, and OverclockingReplies: 2Last Post: April 14th, 2005, 12:24 PM -
assembly language Q
By sixf00t4 in forum IMO CommunityReplies: 2Last Post: September 29th, 2003, 09:30 PM -
Computer assembly
By jch216 in forum General Tech DiscussionReplies: 26Last Post: June 9th, 2003, 07:03 PM -
Assembly Charge
By techteen143 in forum IMO CommunityReplies: 14Last Post: December 24th, 2002, 10:07 PM



LinkBack URL
About LinkBacks





Reply With Quote

Who would have imagined staid Geneva to be showing ...well to be hosting CooLCarZ > > > High-Performance in Geneva on MSN Photos I'm not sure what the "concept" is behind these "concept...
Sunday Morning in NY and GOOD...