~ubuntu-branches/ubuntu/trusty/libticalcs/trusty-proposed

« back to all changes in this revision

Viewing changes to src/romdump_8x/ti83pdefs.inc

  • Committer: Package Import Robot
  • Author(s): Andreas B. Mundt
  • Date: 2013-08-27 19:58:21 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130827195821-biurlicyqb65gj3g
Tags: 1.1.8+dfsg2-2
* Provide original upstream source, but patch away pre-compiled
  binaries to be policy-compliant.
* Remove unnecessary dependency on 'autopoint', use autoreconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;;; -*- TI-Asm -*-
 
2
 
 
3
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
4
;;;
 
5
;;; TI-73/82/83/83+/84+/85/86 ROM Dumper
 
6
;;;
 
7
;;; Copyright (c) 2012 Benjamin Moody
 
8
;;;
 
9
;;; This program is free software; you can redistribute it and/or modify
 
10
;;; it under the terms of the GNU General Public License as published by
 
11
;;; the Free Software Foundation; either version 2 of the License, or
 
12
;;; (at your option) any later version.
 
13
;;;
 
14
;;; This program is distributed in the hope that it will be useful,
 
15
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
;;; GNU General Public License for more details.
 
18
;;;
 
19
;;; You should have received a copy of the GNU General Public License
 
20
;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
;;;
 
22
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
23
 
 
24
;;; Memory mapping
 
25
 
 
26
memPort equ 6
 
27
 
 
28
;;; Link port
 
29
 
 
30
linkPort          equ 0
 
31
LINK_STATUS_MASK  equ 3
 
32
LINK_RESET        equ 0
 
33
LINK_D0L          equ 1
 
34
LINK_D1L          equ 2
 
35
 
 
36
;;; RAM addresses
 
37
 
 
38
ramCode      equ 8100h
 
39
arcInfo      equ 83EEh
 
40
pagedCount   equ 9834h
 
41
pagedBuf     equ 983Ah
 
42
curRow       equ 844Bh
 
43
curCol       equ 844Ch
 
44
iMathPtr5    equ 84DBh
 
45
saveSScreen  equ 86ECh
 
46
 
 
47
;;; Flags
 
48
 
 
49
apdFlags       equ 08h
 
50
apdRunning     equ 3
 
51
 
 
52
remoteKeyFlag  equ 1Fh
 
53
remoteKeyPress equ 5
 
54
 
 
55
;;; System calls
 
56
 
 
57
APP_PUSH_ERRORH equ 59h
 
58
APP_POP_ERRORH  equ 5Ch
 
59
 
 
60
_ClrScrnFull      equ 4546h
 
61
_DispHL           equ 4507h
 
62
_GetBaseVer       equ 4C6Fh
 
63
_GetBootVer       equ 80B7h
 
64
_GetHWVer         equ 80BAh
 
65
_GetCSC           equ 4018h
 
66
_GetVariableData  equ 5092h
 
67
_LdHLind          equ 4009h
 
68
_Mov18B           equ 47DAh
 
69
_PutC             equ 4504h
 
70
_PutS             equ 450Ah
 
71
_RecAByteIO       equ 4F03h
 
72
_RunIndicOff      equ 4570h
 
73
_SendAByte        equ 4EE5h
 
74
_WriteAByteSafe   equ 80C6h
 
75
 
 
76
;;; Macros
 
77
 
 
78
.addinstr B_CALL * EF 3 NOP 1
 
79
 
 
80
#define CLEAR_LCD       B_CALL _ClrScrnFull
 
81
#define GET_CSC         B_CALL _GetCSC
 
82
#define PUT_CHAR        B_CALL _PutC
 
83
#define PUT_DECIMAL     B_CALL _DispHL
 
84
#define PUT_STRING      B_CALL _PutS
 
85
#define RUN_INDIC_OFF   B_CALL _RunIndicOff
 
86
#define SET_ROM_PAGE    out (memPort), a
 
87
 
 
88
#define EXIT_KEY_STR    db 0C1h, "MODE]"
 
89
 
 
90
;;; Miscellaneous
 
91
 
 
92
#define CALC_FLASH
 
93
#define CALC_ROM_SIZE 0