Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.development > #9423

Re: THANKS FOR INFO & SUGGESTIONS

From "wolfgang kern" <nowhere@never.at>
Newsgroups alt.os.development
Subject Re: THANKS FOR INFO & SUGGESTIONS
Date 2016-04-10 13:31 +0200
Organization KESYS-development
Message-ID <neddj0$kp4$1@gioia.aioe.org> (permalink)
References (1 earlier) <20160403173650.55074eb8@_> <ne0b78$m2g$1@dont-email.me> <ne1541$17fa$1@gioia.aioe.org> <nebqrl$8it$1@dont-email.me> <ned4qn$6ov$1@gioia.aioe.org>

Show all headers | View raw


I wrote:

and forgot to restore BX to 0x7e00 after the BIOS call !

> hex4ax:               ;4 nibbles from ax
>  push ax
>  call hex2ah
>  pop ax
>  shl ax,8
> hex2ah:               ;2 digits of AH
>  mov al,ah
>  shr al,4            ;high part first
>  call hex1al
>  mov al,ah 
> hex1al:               ;a single nibble from AL
>  push ax
>  and al,0x0f
>  cmp al,0x0a
>  jc hex1
>  add al,0x07
> hex1:
>  add al,0x30          
>  mov ah 0x0e
>  mov bh,0 
>  int 0x10
*  mov bx,0x7e00        ;restore buf-ptr
>  pop ax
>  ret

__
wolfgang 

Back to alt.os.development | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: How to use BIOS int 13h ah=48h ? Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-03 17:36 -0400
  Re: How to use BIOS int 13h ah=48h ? bilsch <king621@comcast.net> - 2016-04-05 05:34 -0700
    Re: How to use BIOS int 13h ah=48h ? "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-04-05 12:53 -0700
      THANKS FOR INFO & SUGGESTIONS bilsch <king621@comcast.net> - 2016-04-09 14:09 -0700
        Re: THANKS FOR INFO & SUGGESTIONS "Mike Gonta" <mikegonta@gmail.com> - 2016-04-09 18:42 -0400
          Re: THANKS FOR INFO & SUGGESTIONS Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-10 04:02 -0400
            Re: THANKS FOR INFO & SUGGESTIONS "Alexei A. Frounze" <alexfrunews@gmail.com> - 2016-04-10 01:31 -0700
        Re: THANKS FOR INFO & SUGGESTIONS "Benjamin David Lunt" <zfysz@fysnet.net> - 2016-04-09 21:28 -0700
          Re: THANKS FOR INFO & SUGGESTIONS bilsch <king621@comcast.net> - 2016-04-13 17:30 -0700
            Re: THANKS FOR INFO & SUGGESTIONS Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-13 22:09 -0400
        Re: THANKS FOR INFO & SUGGESTIONS "wolfgang kern" <nowhere@never.at> - 2016-04-10 11:02 +0200
          Re: THANKS FOR INFO & SUGGESTIONS "wolfgang kern" <nowhere@never.at> - 2016-04-10 13:31 +0200
    Re: How to use BIOS int 13h ah=48h ? Rod Pemberton <NoHaveNotOne@bcczxcfre.cmm> - 2016-04-06 00:10 -0400

csiph-web