Skip to content

Commit acb5e3a

Browse files
fix some documentation and check prereqs
1 parent 6b031ea commit acb5e3a

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

docs/headers/intce.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ intce.h
99
1010
This header includes defines and prototypes for working with user interrupts.
1111

12-
**WARNING: As of hardware revision I, user interrupts are no longer supported.**
12+
.. warning::
1313

14-
**Send TI a strongly worded email about removal of this feature.**
14+
As of hardware revision I, user interrupt vectors are no longer supported.
15+
Some functions will no longer work on the newer hardware, and are labeled as such.
16+
Feel free to send TI a strongly worded email about this limitation.
1517

1618
.. contents:: :local:
1719
:depth: 3

docs/static/faq.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ This table lists the locations relative to *sp* from within the called funciton.
8181
+------------+------------+----------------------+
8282

8383
This table lists which registers are used for return values.
84-
Note that for shorts, the upper byte does not matter.
84+
The type's sign does not affect the registers used, but may affect the value returned.
8585

86-
**xx**: Contains data.
86+
.. note::
8787

88-
**??**: Don't care.
88+
| **xx**: Byte must contain valid data.
89+
| **??**: Byte contents don't matter.
8990
9091
+------------+------------+-------------------+
9192
| C Type | Register | Register Contents |

makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ LIB_DIR = $(call NATIVEPATH,src/$1)
3030

3131
all: convbin convimg convfont $(LIBS) std
3232

33-
std:
33+
std: check
3434
$(Q)$(MAKE) -C $(call NATIVEPATH,src/std)
3535

36-
fasmg:
36+
fasmg: check
3737
$(Q)$(MAKE) -C $(call NATIVEPATH,tools/fasmg)
3838

39-
convbin:
39+
convbin: check
4040
$(Q)$(MAKE) -C $(call NATIVEPATH,tools/convbin) release
4141

42-
convimg:
42+
convimg: check
4343
$(Q)$(MAKE) -C $(call NATIVEPATH,tools/convimg) release
4444

45-
convfont:
45+
convfont: check
4646
$(Q)$(MAKE) -C $(call NATIVEPATH,tools/convfont)
4747

4848
$(LIBS): fasmg
@@ -109,9 +109,14 @@ clean: $(addprefix clean-,$(LIBS)) clean-std
109109
clean-std:
110110
$(Q)$(MAKE) -C $(call NATIVEPATH,src/std) clean
111111

112+
check:
113+
$(Q)$(EZCC) --version || ( echo Please install ez80-clang && exit 1 )
114+
$(Q)$(FASMG) $(NULL) $(NULL) || ( echo Please install fasmg && exit 1 )
115+
112116
help:
113117
@echo Helpful targets:
114118
@echo all
119+
@echo check
115120
@echo docs-html
116121
@echo docs-pdf
117122
@echo clean
@@ -123,7 +128,6 @@ help:
123128

124129
.PHONY: $(LIBS)
125130
.PHONY: install-fasmg install-std install-ce $(addprefix install-,$(LIBS))
126-
.PHONY: clean clean-std $(addprefix clean-,$(LIBS))
131+
.PHONY: check clean clean-std $(addprefix clean-,$(LIBS))
127132
.PHONY: all help install uninstall release release-libs docs-pdf docs-html
128133
.PHONY: fasmg convbin convimg convfont
129-

src/common.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ WINDOWS := 1
4141
SHELL := cmd.exe
4242
FASMG ?= fasmg.exe
4343
EZCC ?= ez80-clang.exe
44+
NULL ?= nul
4445
NATIVEPATH ?= $(subst /,\,$1)
4546
NATIVEEXE ?= $(NATIVEPATH).exe
4647
MKDIR ?= ( mkdir $1 2>nul || call )
@@ -56,6 +57,7 @@ RELEASE_NAME = windows
5657
else
5758
FASMG ?= fasmg
5859
EZCC ?= ez80-clang
60+
NULL ?= /dev/null
5961
NATIVEPATH ?= $(subst \,/,$1)
6062
NATIVEEXE ?= $(NATIVEPATH)
6163
MKDIR ?= mkdir -p $1

0 commit comments

Comments
 (0)