Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/MAIN.ASM @ 83:3e351e25f5d1
adding anti-aliased fonts frame and merging some patches from Jeando
author | heinrichsweikamp |
---|---|
date | Tue, 07 Dec 2010 22:36:19 +0100 |
parents | 2972a06b0785 |
children | 82de387d6e7c |
comparison
equal
deleted
inserted
replaced
82:bc3092c41335 | 83:3e351e25f5d1 |
---|---|
29 LIST P=18F4685 ;directive to define processor | 29 LIST P=18F4685 ;directive to define processor |
30 #include <P18F4685.INC> ;processor specific variable definitions | 30 #include <P18F4685.INC> ;processor specific variable definitions |
31 | 31 |
32 #include definitions.asm ; Defines, I/O Ports and variables | 32 #include definitions.asm ; Defines, I/O Ports and variables |
33 | 33 |
34 ORG 0x0000 | 34 reset_v code 0x0000 |
35 goto start ; Start! | 35 goto start ; Start! |
36 | 36 |
37 ORG 0x0008 | 37 inter_v code 0x0008 |
38 bra HighInt ;High Priority Interrups | 38 bra HighInt ;High Priority Interrups |
39 | 39 |
40 ORG 0x0018 ;Low Priority Interrups | 40 inter_asm code 0x0018 ;Low Priority Interrups |
41 ; *** low priority interrupts not used | 41 ; *** low priority interrupts not used |
42 bra HighInt ;High Priority Interrups | 42 bra HighInt ;High Priority Interrups |
43 | 43 |
44 HighInt: | 44 HighInt: |
45 movff BSR,0x102 ;save BSR register | 45 movff BSR,0x102 ;save BSR register |
71 movff wreg_temp,WREG ;restore working register | 71 movff wreg_temp,WREG ;restore working register |
72 movff status_temp,STATUS ;restore STATUS register | 72 movff status_temp,STATUS ;restore STATUS register |
73 movff 0x102,BSR ;restore BSR register | 73 movff 0x102,BSR ;restore BSR register |
74 retfie | 74 retfie |
75 | 75 |
76 ; ORG 0x00070 ; | 76 ;============================================================================= |
77 #include text_table.asm ; includes textmacros | 77 #include text_table.asm ; includes textmacros |
78 | |
79 ;============================================================================= | |
80 osct_asm code | |
78 #include displaytext.asm ; sends texts to wordprocessor | 81 #include displaytext.asm ; sends texts to wordprocessor |
79 #include math.asm ; mathematical functions | 82 #include math.asm ; mathematical functions |
80 #include wait.asm ; waitroutines | 83 #include wait.asm ; waitroutines |
81 #include valconv.asm ; outputs to POSTINC2 | 84 #include valconv.asm ; outputs to POSTINC2 |
82 #include eeprom_rs232.asm ; Internal EEPROM and RS232 Interface | 85 #include eeprom_rs232.asm ; Internal EEPROM and RS232 Interface |
103 #include sync_clock.asm ; syncs RTC with PC | 106 #include sync_clock.asm ; syncs RTC with PC |
104 #include start.asm ; Startup and init, checks background debugger | 107 #include start.asm ; Startup and init, checks background debugger |
105 #include simulator.asm ; Stand-alone simulator routines | 108 #include simulator.asm ; Stand-alone simulator routines |
106 #include io.asm ; Low-Level I/O access | 109 #include io.asm ; Low-Level I/O access |
107 | 110 |
111 ;============================================================================= | |
112 #include printf.asm ; jDG's compact printf test implementation. | |
113 #ifdef TESTING | |
114 #include aa_tests.asm ; And testing code. | |
115 #include test_printf.asm ; Special font/colors page | |
116 #endif | |
108 | 117 |
118 ;============================================================================= | |
119 #ifdef AAFONTS | |
120 ; New antialiased word processor and fonts | |
121 #include aa_wordprocessor.asm ; ASM wordprocessor under tests. | |
122 #else | |
109 ; Include C sub-routines automatically | 123 ; Include C sub-routines automatically |
124 p3_wp code 0x09A00 ; Mark segment name into the .map file | |
125 ; #include p3_wordprocessor_9A00_BAFF_0B468.txt ; jDG's C-Code | |
126 #include ostc_part3_wordprocessor_NEW_CURSOR_9A00_to_B960_jump_in_B410.txt ; Christians fonts... | |
127 #endif | |
110 | 128 |
111 ORG 0x09A00 | 129 ;============================================================================= |
112 #include ostc_part3_wordprocessor_NEW_CURSOR_9A00_to_B960_jump_in_B410.txt ; New C-Code | 130 p2_deco code 0x0C000 ; Mark segment name into the .map file |
131 #include p2_deco_main_v110d.txt | |
113 | 132 |
114 ORG 0x0C000 | 133 ;============================================================================= |
115 #include p2_deco_main_v110d.txt | |
116 | |
117 MESSG "OSTC - diving computer code, Copyright (C) 2010 HeinrichsWeikamp GbR" | 134 MESSG "OSTC - diving computer code, Copyright (C) 2010 HeinrichsWeikamp GbR" |
118 MESSG "This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the" | 135 MESSG "This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the" |
119 MESSG "Free Software Foundation, either version 3 of the License, or (at your option) any later version." | 136 MESSG "Free Software Foundation, either version 3 of the License, or (at your option) any later version." |
120 MESSG "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY" | 137 MESSG "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY" |
121 MESSG "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details." | 138 MESSG "or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details." |