Program Challenge (was Re: z80 timing... 6502 timing)

From: Fred Cisin <cisin_at_xenosoft.com>
Date: Mon Apr 19 15:48:39 1999

; 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
Received on Mon Apr 19 1999 - 15:48:39 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:31:44 BST