;; bytecmp [Bytes] ;; Determines if two bytes are equal. ;; Inputs: ;; HL: String pointer ;; DE: String pointer ;; Outputs: ;; Z: Set if equal, reset if not equal bytecmp: push hl push de ld a, (de) or a cp (hl) pop de pop hl ret ;; bytecpy [Bytes] ;; Copies a byte. ;; Inputs: ;; HL: Byte pointer ;; DE: Destination ;; Notes: ;; This will trample into undefined territory if you try to copy a string into some ;; allocated memory it won't fit in. bytecpy: push de push hl ex de, hl ld a, (de) ld (hl), a pop hl pop de ret