; sleazy 8088 (for those who don't have to take it so seriously)
; Assumes that there is no penalty for memory usage
;
; entry conditions:
; AX: number to be converted
; DS: location of data segment
; contents of data segment left as an exercise for the reader
;
; exit conditions:
; AX: offset within data segment of null terminated string
;
; Does NOT currently handle input validation. ( AX > 4095 )
MOV CL, 4
SHL AX, 4
RET
;sample content of data segment:
; 2A 00 20 20 20 20 20 20 20 20 20 20 20 20 20 20
; 49 00 20 20 20 20 20 20 20 20 20 20 20 20 20 20
; 49 49 00 20 20 20 20 20 20 20 20 20 20 20 20 20
; 49 49 49 00 20 20 20 20 20 20 20 20 20 20 20 20
; 49 56 00 20 20 20 20 20 20 20 20 20 20 20 20 20