Make your own free website on Tripod.com

SBC HL,ss

Subtract with borrow HL and register pair ss.
Function: HL <- HL - ss - C
 
Format:
1110 1101
 
byte 1: ED
 
01ss 0010
 
byte 2
 
Description: The contents of the specified register pair plus the contents of the carry flag are subtracted from the contents of the HL register pair and the result is stored back in HL. ss may be any one of:
BC
00
DE
01
HL
10
SP
11

 
Data Flow:
 
Timing: 4 M cycles; 15 T states: 7.5 usec @ 2 MHz
 
Addressing Mode: implicit
 
Byte Codes:
 
Flags:
 
Example:

OBJECT CODE
Before:
 
After: