Skip to content

Commit b5bce24

Browse files
Add some things to tice.h
1 parent 8de4d81 commit b5bce24

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ make install
3737
By default, `make install` will install into the home (~/CEdev) directory on linux and mac, and in the root drive (C:\\CEdev) directory on windows.
3838
This is configurable with `make install PREFIX={DIFFERENT_LOCATION}`
3939

40+
To build a release, use: `make dist`
41+
4042
If you wish to view a list of available makefile rules, type: `make help`
4143

44+
### Building Windows Release
45+
4246
If you wish to build a release; [nsis](https://sourceforge.net/projects/nsis/) is required for windows. Because of limitations of the current software; the special *Large strings* build is needed. You can find it [here](http://nsis.sourceforge.net/Special_Builds). Note also that you must configure your path variable to point to the nsis installation directory.
4347

44-
To build a release, type: `make dist`

src/ce/tice.h

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,9 @@ typedef enum {
803803
#define os_TextFlags (*(uint8_t*)0xD00080)
804804
#define os_ApdFlags (*(uint8_t*)0xD00088)
805805
#define os_RclFlags (*(uint8_t*)0xD0008E)
806-
806+
807+
#define os_AppData ((uint8_t*)0xD00429)
808+
807809
#define os_KbdScanCode (*(uint8_t*)0xD00587)
808810
#define os_KbdLGSC (*(uint8_t*)0xD00588)
809811
#define os_KbdPSC (*(uint8_t*)0xD00589)
@@ -824,21 +826,25 @@ typedef enum {
824826
#define os_OP4 ((uint8_t*)0xD00619)
825827
#define os_OP5 ((uint8_t*)0xD00624)
826828
#define os_OP6 ((uint8_t*)0xD0062F)
829+
#define os_OP7 ((uint8_t*)0xD0063A)
827830

828831
#define os_ProgToEdit ((char*)0xD0065B)
829832
#define os_NameBuff ((char*)0xD00663)
830833

834+
#define os_TextShadow ((uint8_t*)0xD006C0) /**< Text buffer 260 bytes */
835+
831836
#define os_PromptRow (*(uint8_t*)0xD00800)
832837
#define os_PromptCol (*(uint8_t*)0xD00801)
833838
#define os_PromptIns (*(uint8_t*)0xD00802)
834839
#define os_PromptShift (*(uint8_t*)0xD00803)
835840
#define os_PromptRet (*(uint8_t*)0xD00804)
836841
#define os_PromptValid (*(uint8_t*)0xD00807)
837842

838-
#define os_PenCol (*(uint24_t*)0xD008D2)
839-
#define os_PenRow (*(uint8_t*)0xD008D5)
843+
#define os_PenCol (*(uint24_t*)0xD008D2) /**< Small font column location */
844+
#define os_PenRow (*(uint8_t*)0xD008D5) /**< Small font row location */
840845

841-
#define os_AsmPrgmSize (*(uint16_t*)0xD0118C)
846+
#define os_StatVars ((uint8_t*)0xD01191)
847+
#define os_AsmPrgmSize (*(uint16_t*)0xD0118C) /**< Current size of executing program */
842848

843849
#define os_uXMin (*(real_t*)0xD01D61)
844850
#define os_uXMax (*(real_t*)0xD01D6A)
@@ -906,6 +912,8 @@ typedef enum {
906912
#define os_Cal_FV (*(real_t*)0xD01F9B)
907913
#define os_Cal_PY (*(real_t*)0xD01FA4)
908914

915+
#define os_CmdShadow ((uint8_t*)0xD0232D)
916+
909917
#define os_Y1LineType (*(uint8_t*)0xD024BF)
910918
#define os_Y2LineType (*(uint8_t*)0xD024C0)
911919
#define os_Y3LineType (*(uint8_t*)0xD024C1)
@@ -955,10 +963,10 @@ typedef enum {
955963
#define os_Polar6LineColor (*(uint8_t*)0xD024ED)
956964
#define os_SecULineColor (*(uint8_t*)0xD024EE)
957965
#define os_SecVLineColor (*(uint8_t*)0xD024EF)
958-
#define os_SecWLineColor (*(uint8_t*)0xD024F0)
966+
#define os_SecWLineColor (*(uint8_t*)0xD024F0)
959967

960-
#define os_AppErr1 ((char*)0xD025A9)
961-
#define os_AppErr2 ((char*)0xD025B6)
968+
#define os_AppErr1 ((char*)0xD025A9) /**< String [1] for custom error */
969+
#define os_AppErr2 ((char*)0xD025B6) /**< String [2] for custom error */
962970

963971
#define os_CursorHookPtr (*(uint24_t*)0xD025D5)
964972
#define os_LibraryHookPtr (*(uint24_t*)0xD025D8)
@@ -984,28 +992,30 @@ typedef enum {
984992
#define os_SilentLinkHookPtr (*(uint24_t*)0xD02614)
985993
#define os_ActiveUSBHookPtr (*(uint24_t*)0xD0261A)
986994

987-
#define os_TempFreeArc (*(uint24_t*)0xD02655) /**< Set after asm_ArcChk call */
995+
#define os_TempFreeArc (*(uint24_t*)0xD02655) /**< Set after asm_ArcChk call */
988996

989-
#define os_TextBGcolor (*(uint16_t*)0xD02688)
990-
#define os_TextFGcolor (*(uint16_t*)0xD0268A)
997+
#define os_TextBGcolor (*(uint16_t*)0xD02688) /**< Large font background color */
998+
#define os_TextFGcolor (*(uint16_t*)0xD0268A) /**< Large font foreground color */
991999

992-
#define os_DrawBGColor (*(uint16_t*)0xD026AA)
993-
#define os_DrawFGColor (*(uint16_t*)0xD026AC)
1000+
#define os_DrawBGColor (*(uint16_t*)0xD026AA) /**< Small font background color */
1001+
#define os_DrawFGColor (*(uint16_t*)0xD026AC) /**< Small font foreground color */
9941002
#define os_DrawColorCode (*(uint8_t*)0xD026AE)
9951003

9961004
#define os_BatteryStatus (*(uint8_t*)0xD02A86)
9971005

998-
#define os_GraphBGColor (*(uint16_t*)0xD02A98)
1006+
#define os_GraphBGColor (*(uint16_t*)0xD02A98) /**< Graph background 565 color */
9991007

10001008
#define os_FillRectColor (*(uint16_t*)0xD02AC0)
1001-
#define os_StatusBarBGColor (*(uint16_t*)0xD02ACC)
1009+
#define os_StatusBarBGColor (*(uint16_t*)0xD02ACC) /**< Status bar 565 color */
10021010

10031011
#define os_TmpYears (*(real_t*)0xD02B01)
10041012
#define os_TmpMonths (*(real_t*)0xD02B0A)
10051013
#define os_TmpDays (*(real_t*)0xD02B13)
10061014
#define os_TmpHours (*(real_t*)0xD02B1C)
10071015
#define os_TmpMinutes (*(real_t*)0xD02B25)
10081016

1017+
#define os_RamCode ((uint8_t*)0xD18C7C) /**< 1023 bytes free ram */
1018+
10091019
/*
10101020
* TI-OS Token definitions
10111021
*/

src/fileioc/fileioc.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ _AllocVar_ASM:
143143

144144
;-------------------------------------------------------------------------------
145145
_CloseAll:
146-
; Initializes the File IO library
146+
; Closes all open file handles
147147
; Arguments:
148148
; None
149149
; Returns:

0 commit comments

Comments
 (0)