home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Help with assembly language

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2190
Discussions: 200,919, Posts: 2,379,033, Members: 246,286
Old October 20th, 2009, 12:08 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 15
Send a message via MSN to bm159486 Send a message via Yahoo to bm159486
Exclamation
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?
bm159486 is offline   Reply With Quote
Old October 20th, 2009, 10:25 AM     #2 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,241
Send a message via AIM to Rootstonian
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 data

Last edited by Rootstonian : October 20th, 2009 at 10:27 AM.
Rootstonian is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
addition/subtraction algorithms implementation on DSP processor in assembly language Indian Processors, Memory, and Overclocking 2 April 14th, 2005 01:24 PM
assembly language Q sixf00t4 IMO Community 2 September 29th, 2003 10:30 PM
Computer assembly jch216 General Tech Discussion 26 June 9th, 2003 08:03 PM
Assembly Charge techteen143 IMO Community 14 December 24th, 2002 10:07 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2842)
Why is Khalid Sheikh Mohammed even .. (9)
Obama the Muslim (9)
Is the PSU I received dead? (10)
windows vista security holes (7)
Install XP pro and a Vista laptop ?.. (9)
HIS HD5770 graphic card question (15)
Foreign voltage (8)
A good PSU? (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Print spooler problem (10)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (15)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Help getting around port 80 for camer.. (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (31)
Foreign voltage (8)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
windows vista security holes (7)
Install XP pro and a Vista laptop ?? (9)
EVGA 9800 gtx help with finding a goo.. (8)
Modern Warfare For the PC (32)
Problem with speed step/turbo boost? (1)
monitor will not turn on at all, (0)
Modern Warfare 2: Who Bought It? (61)
World's largest Monopoly Game using G.. (330)
Print spooler problem (10)
SIS 740 and Widescreen (8)
Baffling Problem with my CPU/MoBo's. .. (0)
Display shows 3x5 inch in middle of s.. (0)
HIS HD5770 graphic card question (15)
Best file format to play on Windows H.. (0)
PSP Go bought in Japan (0)
Asus P4G8X Mobo (3)
Need hard disk drivers (4)
windows 7 internet problem (4)
What OS for a home server? (other tha.. (1)


All times are GMT -4. The time now is 04:50 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28