[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Teradesk compile problem
Paul Wratt píše v Po 30. 11. 2009 v 20:32 +1100:
> couple of fixes to IF_MINT_ statements (missing the space between IF),
> and all but the last file (I presume) compile, unfortunately its in
> assembler, and one of the errors is a reference to USP, the other is
> use of RTE, both are said to be "privileged". Can anyone make a
> suggestion..
Since when an assembler compiler forbids you to use privileged
instructions? :-O
> move.l USP,a7
> rte
> I presume USP is related to stack pointer, and that code must be in
My guess is that USP is a macro or define that contains a pointer to
memory with preallocated buffer for an own stack.
> My assembler is so "rusty" I cant remember what RTS and RTE are,
> except to say the are "return" instructions. END is the last line in
> the file, is it acceptable to use RTS in place of RTE.
No way. RTE is ReTurn from Exception and cannot be replaced by RTS!
Petr