6502: Fix longmp
authorAlan Cox <alan@linux.intel.com>
Wed, 13 Dec 2017 19:13:00 +0000 (19:13 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 13 Dec 2017 19:13:00 +0000 (19:13 +0000)
commit1e0ed7fb062f5c3dd277e0d7b9efd71f48d8d034
tree9cedeff87f092b819c22753003cf4fa91dec9b69
parent18a4a2a0b1185fc304d06d5f1548f3fe28440b00
6502: Fix longmp

This is ugly. For the 6502/6509/65C02 and friends we need to just deal with the
8bit S register. For the 65C816 we have to change the low 8bits of S only, while
keeping interrupts off as we might otherwise get swapped out and change S mid
calculation.

Not always my favourite processor for multi-tasking..
Library/libs/Makefile.6502
Library/libs/longjmp_6502.s [new file with mode: 0644]