Skip to content

title: "Hi" description: TRSE built-in method (from IDE help)


Hi

Systems: MOS6502, Z80, Z180, M6809
Parameters: a


[byte] = Hi( [address] );

  • [address] - address to query

Description

Gets the high byte of an address or zero page pointer.

Example

var data : incbin("myData.bin", $2050); i:byte; zp: pointer; begin zp:=data; i:=hi(data); // will be $20 i:=hi(zp); // will be $20 i:=lo(data); // will be $50 i:=lo(zp); // will be $50 end;