Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How?

Hi!
I'm realy intrested how can I visualize a char type on the screen.
Accually I would like to write a subtraction program, which ask 2 number (these are 'char' type), and I wolud like to write out the result of it: a + b = c
I can't find any useable documentation!

If somebody can help me, it would be cool!
Thank You!


Comments

  • shaolin007shaolin007 Member Posts: 1,018
    : Hi!
    : I'm realy intrested how can I visualize a char type on the screen.
    : Accually I would like to write a subtraction program, which ask 2 number (these are 'char' type), and I wolud like to write out the result of it: a + b = c
    : I can't find any useable documentation!
    :
    : If somebody can help me, it would be cool!
    : Thank You!
    :
    [code]

    mov ah, 9
    mov dx, offset abc
    int 21h

    abc db "A+B=C",'$'
    [/code]

  • frizzzfrizzz Member Posts: 49
    : Hi!
    : I'm realy intrested how can I visualize a char type on the screen.
    : Accually I would like to write a subtraction program, which ask 2 number (these are 'char' type), and I wolud like to write out the result of it: a + b = c
    : I can't find any useable documentation!
    :
    : If somebody can help me, it would be cool!
    : Thank You!
    :
    :
    : You need to act on two sorts of values, representing a 'char' type:
    1) The make-code, coming out of the keyboard-controller
    2) The value, which represents the displayed character (PC-letters)
    If You do not use VGA3-mode or other non-grafical videomodes, the problem will become more awful...
    But as I just published my assembler-OS, You could find help there going more in depth. Look at my homepage and download the source
    www.rcfriz.de
    If there is still a question remaining, contact me at
    asmos@rcfriz.de
Sign In or Register to comment.