Hallo, ich suche eine Code in Assembler mit welchem es moeglich ist eine 32 oder 24-Bit-Zahl durch eine 16-Bit Zahl zu teilen. Vielen Dank fuer euere Hinweise, Thomas H.
;**********************************************************
;BL,AH,AL : CH, CL = BL,AH,AL REST in DH, DL
DIV24_16:
LDI BH, 24
CLR DH
MOV DL, DH
Loop24:
LSL AL
ROL AH
ROL BL
ROL DL
ROL DH
CP DL, CL
CPC DH, CH
BRLO Skip24
SUB DL, CL
SBC DH, CH
INC AL
Skip24:
DEC BH
BRNE Loop24
RET
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.