Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. glogic

    outputing numbers from an array

    i have the numbers in the array now, both in single and double digits now what i am trying to do is display them back out to the screen. this is what i have and i dont know why it aint working mov bx,offset numarray mov cx,count outtake:mov al,[bx] cmp al,9 ;to check...
  2. glogic

    putting data into array

    its ok i figured this one out.. thanks again AmkG
  3. glogic

    putting data into array

    so if i wanted to put another variable in the next position do i increment bx? inc bx also if i want bx to point to the first postion of the array do i mov bx,'0' to repostion it at the start? or mov bx,offset numarray again i just want to thank u have been a great help..
  4. glogic

    moving ax into a variable

    now i do what ever calculations i want with al and add 48 back to it to be displayed. add al,48 mov ah,2 mov dl,al int 21h this should display the answer in decimal
  5. glogic

    putting data into array

    in assembly language how do i place numbers into an array numarray db 5 dup(?) firstnum db 0 mov ah,1 int 21h mov firstnum,al mov bx,offset numarray mov [bx],firstnum now i aint sure if a variable can be placed into an array like this.. does it have to come from a...
  6. glogic

    convert ascii to decimal

    hey there.. i am having trouble converting a decimal double digit number that is in a variable out of ascii.. when ever i try to print to the screen it gives me the ascii value for the number e.g 40 = ( when i just want to print 40
  7. glogic

    moving ax into a variable

    i still aint getting it to work.. how do u convert to ascii codes.. and do i only need to do it before i output to the screen
  8. glogic

    moving ax into a variable

    ok here is what i have now. at the moment i have the decimal value i want in the variable but when i try and display it again it changes back to ascii.. mov ah,1 int 21h sub ax,48 mov firstd,al mov al,10 mul firstd mov firstd,al mov ah,1 int 21h sub ax,48 add firstd,al mov...
  9. glogic

    moving ax into a variable

    i am using dos and i am using tasm to compile the programs if that sheds any light on the subject
  10. glogic

    moving ax into a variable

    sorry the machine was beeping that part wasnt imortant i just took it to mean that there was an error.. not sure what assembler can u give me examples and i will let u know which one sounds familiar.. sorry for not knowing something as simple as that but i am learning.. i swear!
  11. glogic

    moving ax into a variable

    hi how u doing.. what i am trying to do is take in 2 digits and then place them in a variable. i use mov ah,1 to take in the first didit which i then place in a db then i use another mov ah,1 to take in the second digit which places the character in al. i then place the stored db back into ah. i...
  12. glogic

    local procedures

    sorry guess i wasnt very clear there.. the digits are decimal number with 2 digits
  13. glogic

    local procedures

    hi who ever is reading this.. what i need to do is take write a procedure which can take input of 2 digit values and another procedure to output 2 digit values. this is to be written in assembly thanks in advance and any help at all would be great
  14. glogic

    NEED HELP WITH ADDING 2 NUMBERS

    cheers wody that worked like a charm
  15. glogic

    NEED HELP WITH ADDING 2 NUMBERS

    HI I KNOW THAT THIS IS HANDY TO EVERYONE ELSE BUT I DONT KNOW WHAT I AM DOING WRONG.. I AM ADDING TWO NUMBERS FROM AX AND BX AND RESULT IN AX AND WHEN THE ANSWER IS BELOW 10 IT OUTPUTS THE ANSWER FINE BUT WHEN THE ANSWER IS 10 OR OVER IT GOES MAD ON ME.. PLEASE HELP G

Part and Inventory Search

Back
Top