TITLE "Z3PWHL - Z3lib 4.0" ;================================================================ ; The Libraries, Version 4, (C) 1989 by Alpha Systems Corp. ;---------------------------------------------------------------- ; Author : Harold F. Bower ; Derived from Z3PWHL.Z80 Ver 1.1 by Richard Conn ; Date : 8 Mar 87 ; Version : 1.2 ; Module : Z3PWHL ; Abstract: This module contains the routine PUTWHL which sets ; the WHEEL byte to a specified value ; Revision: ;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; Module Entry Points PUBLIC PUTWHL ; External References EXT ENVPTR .Z80 CSEG ;=============================================================== ; NAME - PUTWHL ; Entry: A - Contains the value to put in WHEEL byte ; Exit : - Nothing returned. The value is stored ; Uses : - None ; Special Requirements: None ;=============================================================== PUTWHL: PUSH HL PUSH DE PUSH AF LD HL,(ENVPTR) ;pt to environment LD DE,29H ;pt to wheel byte address ADD HL,DE LD E,(HL) ;get address in HL INC HL LD D,(HL) POP AF ;get wheel byte LD (DE),A ;put wheel byte in A POP DE ;restore regs POP HL RET END