![]() | ![]() | ![]() | 4.6 Subroutines and the interface to "C" |
CALL
, RET
.
Subroutine call and return instructions in Intel's IA-32 Intel Architecture Software Developer's
Manual
Volume 2A: Instruction Set Reference, A-M and Intel's IA-32 Intel Architecture Software Developer's
Manual
Volume 2BA: Instruction Set Reference, N-Z.
PUSH
, POP
.
Instructions for pushing values onto the stack and
removing items from the stack in Intel's IA-32 Intel Architecture Software Developer's
Manual
Volume 2BA: Instruction Set Reference, N-Z
PUSHA
, POPA
in Intel's IA-32 Intel Architecture Software Developer's
ManualPushes and pops all of the 32 bit registers at one time.
ENTER
, LEAVE
In Intel's IA-32 Intel Architecture Software Developer's
Manual#include <stdio.h> int count; char name[]="your-name"; int month=11, day=1, year=2004; int main() { count = printf("%s CIS250 %d/%d/%d\n\n",name,month,day,year); printf("count: %d\n",count); return 0; }
Turn in a printed error free listing of the assembly language programs & subprograms, and the output of your program. Include a copy of the testing that you did to verify the program was correct.
Instructor: Louis Taber, louis.taber.at.pima at gmail dot com (520) 206-6850
My web site in Cleveland, OH
The Pima Community College web site
![]() | ![]() | ![]() | 4.6 Subroutines and the interface to "C" |