Re: A86: menus


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

Re: A86: menus



At 12:58 AM 8/27/97 -0500, you wrote:
>does anyone have the routines/calls to make menus in asm?
>
>

this is for the 85, it draws the menu, but you still have to do the words
yourself, just find the coordinate

--------------------------------------

;********************* Display Menu routine *************************
;Description:   Draws the menu bar at the bottom of the screen
;Parameters:    none
;Destroys:      a, b, hl

VIDEO_MEM = $FC00

displaymenu:
        ld      hl, VIDEO_MEM+$380
        ld      b, 32
displaymenuloop1:
        ld      (hl), $FF
        inc     hl
        djnz    displaymenuloop1

        ld      b, 36
        ld      a, $C0
displaymenuloop2:
        ld      (hl), a
        inc     hl
        inc     hl
        inc     hl
        rra
        cp      3
        jr      nz, displaymenuloop2
        ld      a, $C0
        dec     hl
        dec     hl
        djnz    displaymenuloop2

        ld      a, $FE
        ld      (VIDEO_MEM+$38F), a
        ld      (VIDEO_MEM+$39F), a
        ret



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Alan Bailey            mailto:bailela@charlie.cns.iit.edu
 IRC:Abalone              Web:http://www.iit.edu/~bailela/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 


References: