toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

Share macros/defines between C and Assembly

Open ZERICO2005 opened this issue 1 month ago • 0 comments

We should access the contents of <errno.h> and <fenv.h> in assembly; And perhaps we should also allow some of ti84pceg.inc to be accessible in C as well.

For example:

; <errno.h> defines for assembly
_EPERM           :=  1 ; permission error 
_EINVAL          :=  2 ; invalid argument 
_EIO             :=  3 ; io error 
_EDOM            :=  4 ; math domain error 
_ERANGE          :=  5 ; math range error
; ...

https://pastebin.com/0DKg1Qjm

ZERICO2005 avatar Nov 27 '25 19:11 ZERICO2005