This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: i. byte sub () j. int sub (byte a) k. boolean sub (char a, byte b) l. long int sub (char a, int b, int &c) 2. For each of the following code fragments, reverse-engineer the C-like prototype for the subroutine. a. sub PROC MOV AL, xxx RET sub ENDP b. sub PROC PUSH BP MOV BP, SP PUSH AX PUSH DX MOV BX, [BP+6] MOV [BX], DX MOV AL, [BP+4] POP DX POP AX POP BP RET sub ENDP c. sub PROC PUSH BP MOV BP, SP PUSH BX PUSH DX MOV BX, [BP+8] MOV [BX], xxx MOV AX, [BP+4] MOV DX, [BP+6] MOV AL, xxx POP DX POP BX POP BP RET sub ENDP...
View Full Document
This note was uploaded on 09/21/2009 for the course SYSC 3006 taught by Professor Yuuono during the Summer '09 term at Carleton.
- Summer '09