View Full Version : Assembly motorola 68000 subroutines


janesdsu
12-01-04, 11:26 PM
my task is to make a program that will take an integer and find it in an ordered array.. such that :
lineout prompt * Prompts user to enter an integer

****************
* Calls getInput
****************

****************************
* Checks CCR for valid input
****************************

********
* If V=1
********
* Prints error message
* Calls input until valid input is entered

*****************
* Calls binSearch
*****************

********
* If V=0
********
* The return value finds the position of element in array
* Prints the position

********
* If V=1
********
* Prints a not found message


so basically that is what my main is suppose to do. any ideas...

janesdsu
12-02-04, 12:37 PM
ok maybe i wasnt specific...any ideas or psuedocode in the form of c++ /java ... i havent having a difficulty with a place to start...