summaryrefslogtreecommitdiff
path: root/cgthumb2was.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-16Maybe Fix for having the LSB on 1, by flipping its meaning in the garbage ↵Camil Staps1-4/+5
collector
2016-10-15.thumb_func only for node entry labelsCamil Staps1-3/+5
2016-10-03IT blocksCamil Staps1-23/+56
2016-10-03Fix issue with halfword-aligned node entry pointsCamil Staps1-0/+1
2016-10-02Fix storing the program counterCamil Staps1-8/+12
The previous solution was to add 9 (8 for the offset, 1 for the Thumb state). However, the lowest bit is used for something else (garbage collection / evaluation status), so this gives some problems. This solution adds only 8 (the offset), so that we don't alter the lowest two bits. Then, when jumping, the address is IORed with 1, so that the Thumb state bit is set.
2016-09-19Add .align before pushing program counterCamil Staps1-0/+2
2016-09-19Added thumb_funcCamil Staps1-0/+1
2016-09-19Fix PC offset when pushing to stackCamil Staps1-3/+6
2016-09-18Adds thumb directives and fixes for storing the PCCamil Staps1-2/+12
Added directives: - .syntax unified at the start of the file - .thumb at the start of each code section - .thumb_func before each code label Storing the PC: - PC cannot be Rd for str, hence we need the scratch register
2016-09-17Gitignore; copied stuff from arm to thumb2Camil Staps1-0/+2908