Code: Select all
move.l $130, OldRS232Vector
move.l #RS232ReceiveException, $130 ;ST-MFP-12
move.l OldRS232Vector, $130
PUSHW #1 ;aux: <-- Mon hard locks here
move.w d0, SerialBuffer
;hook the RS-232 receive vector
trap #14 ;XBIOS call
Whatever happened to GEM?
None of this discussion has dealt with GEM. Why? Because so far as
GEM is concerned, the serial port doesn't exist.
The AES Event Manager doesn't poll the aux port to determine whether
an event has occurred.
If you want to write a GEM event-driven communications program that
will cooperate with desk accessories for multitasking, you'll need to
use the timer with a time value of 0. This will allow a task switch
to take place, and when you regain control you can check the serial
port's status with GEMDOS or BIOS.
If you're worried that the serial input buffer will overflow while
some system-hog task is running, resize the buffer as described
Users browsing this forum: No registered users and 1 guest