A86: Question about Input


[Prev][Next][Index][Thread]

A86: Question about Input




Hello, what's wrong with this input routine? HL comes out corrupted for some
reason, even though the chars display properly...  Please help..

Input:
  ld hl,0
InputLoop:
  call _getkey
  cp kEnter
  ret z
  sub k0
  jr c,InputLoop
  cp 10
  jr nc,InputLoop
  ld d,h
  ld e,l
  add hl,hl
  add hl,hl
  add hl,de
  add hl,hl
  ld e,a
  ld d,0
  add hl,de
  add a,'0'
  call _vputmap
  jr InputLoop

							-Ahmed

--
Ahmed El-Helw
ahmedre@bellsouth.net
http://asm8x.home.ml.org
ICQ: 3350394


Follow-Ups: