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

« back to all changes in this revision

Viewing changes to src/romdump_8x/ti86defs.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 5
 
27
 
 
28
;;; Link port
 
29
 
 
30
linkPort equ 7
 
31
LINK_STATUS_MASK equ 03h
 
32
LINK_RESET equ 0C0h
 
33
LINK_D0L equ 0D4h
 
34
LINK_D1L equ 0E8h
 
35
 
 
36
;;; RAM addresses
 
37
 
 
38
curRow equ 0C00Fh
 
39
curCol equ 0C010h
 
40
 
 
41
;;; Flags
 
42
 
 
43
apdFlags       equ 08h
 
44
apdRunning     equ 3
 
45
 
 
46
remoteKeyFlag  equ 15h
 
47
remoteKeyPress equ 7
 
48
 
 
49
;;; System calls
 
50
 
 
51
_clrScrn     equ 4A82h
 
52
_dispAHL     equ 4A33h
 
53
_get_key     equ 4068h
 
54
_putc        equ 4A2Bh
 
55
_puts        equ 4A37h
 
56
_runindicoff equ 4AB1h
 
57
 
 
58
;;; Macros
 
59
 
 
60
#define CLEAR_LCD      call _clrScrn
 
61
#define GET_CSC        call _get_key
 
62
#define PUT_CHAR       call _putc
 
63
#define PUT_DECIMAL    xor a \ call _dispAHL
 
64
#define PUT_STRING     call _puts
 
65
#define RUN_INDIC_OFF  call _runindicoff
 
66
 
 
67
#define SET_ROM_PAGE  out (memPort), a
 
68
 
 
69
#define EXIT_KEY_STR  db "[EXIT]"
 
70
 
 
71
;;; Miscellaneous
 
72
 
 
73
#define CALC_ROM_SIZE 256
 
74