Hello ppl,
i have just been introduced to assembly language and im affraid, very affraid!!!
this is one of the practice questions i have been looking at... has anyone got any ideas where i should start or what the layout should look like???
.. and what exactly is a positive going pulse !?!?!? :0
--------------------------------------------------------
an 8 bit unsigned integer will be input at port b, this is the target number that the player will try guess.
a positive going pulse at port A bit 4 will be used to indicate that the target number at port b is ready to be read.
once the data is entered the player can start guessing
the player will setup his guess at port b, and a positive going pulse port A bit 4 will be used to indicate to the program that a new guess is available
and should be read
If the guess is less than the target the program will set bit 0 of port A.
if its greater then it will set bit 1 of port A
if it is equal bothe bit 1 and bot 0 are set on port A
once correctly guessed the game should restart and accept a new target
second part...
modify version 1 of the game so that when the game is started, after the target number is entered, a second number (called n, in the range 1 to 8)
is entered in the same way as the target and stored.
after every guess, the target is rotated left by one bit position. the game then continues as before, but uses the new target
any help would be greatly appreciated
i have just been introduced to assembly language and im affraid, very affraid!!!
this is one of the practice questions i have been looking at... has anyone got any ideas where i should start or what the layout should look like???
.. and what exactly is a positive going pulse !?!?!? :0
--------------------------------------------------------
an 8 bit unsigned integer will be input at port b, this is the target number that the player will try guess.
a positive going pulse at port A bit 4 will be used to indicate that the target number at port b is ready to be read.
once the data is entered the player can start guessing
the player will setup his guess at port b, and a positive going pulse port A bit 4 will be used to indicate to the program that a new guess is available
and should be read
If the guess is less than the target the program will set bit 0 of port A.
if its greater then it will set bit 1 of port A
if it is equal bothe bit 1 and bot 0 are set on port A
once correctly guessed the game should restart and accept a new target
second part...
modify version 1 of the game so that when the game is started, after the target number is entered, a second number (called n, in the range 1 to 8)
is entered in the same way as the target and stored.
after every guess, the target is rotated left by one bit position. the game then continues as before, but uses the new target
any help would be greatly appreciated