+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    15

    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?

  2. #2
    Caveat Emptor Rootstonian's Avatar
    Join Date
    Mar 2005
    Location
    Out of my mind
    Posts
    3,326
    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 09:27 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. addition/subtraction algorithms implementation on DSP processor in assembly language
    By Indian in forum Processors, Memory, and Overclocking
    Replies: 2
    Last Post: April 14th, 2005, 12:24 PM
  2. assembly language Q
    By sixf00t4 in forum IMO Community
    Replies: 2
    Last Post: September 29th, 2003, 09:30 PM
  3. Computer assembly
    By jch216 in forum General Tech Discussion
    Replies: 26
    Last Post: June 9th, 2003, 07:03 PM
  4. Assembly Charge
    By techteen143 in forum IMO Community
    Replies: 14
    Last Post: December 24th, 2002, 10:07 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews