1 ; Virtual Ports for the BIOS Interaction
3 ; Copyright (C) 2010 Frank Zoll
5 ; This file is part of avrcpm.
7 ; avrcpm is free software: you can redistribute it and/or modify it
8 ; under the terms of the GNU General Public License as published by
9 ; the Free Software Foundation, either version 3 of the License, or
10 ; (at your option) any later version.
12 ; avrcpm is distributed in the hope that it will be useful,
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ; GNU General Public License for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with avrcpm. If not, see <http://www.gnu.org/licenses/>.
24 ; ---------------- Defines for the Virtual peripherial interface -------
26 ;The hw is modelled to make writing a CPM BIOS easier.
28 ;0 - Con status. Returns 0xFF if the UART has a byte, 0 otherwise.
29 ;1 - Console input, aka UDR.
31 ;3 - "UART" status: bit 0=rx, bit 1 = tx
32 ;4 - "UART" data register, no wait
38 ;22 - Trigger - write to read, to write a sector using the above info;
39 ; , write to allocated/dirctory/unallocated
46 ;----------------------------------------------- Start of Data Segment
51 ; ---------------------------------------------- Start of Code Segment
99 ;Called with port in temp2. Should return value in temp.
115 cpi temp2,TIMER_MSECS
117 cpi temp2,TIMER_MSECS+6
125 ;Called with port in temp2 and value in temp.
152 cpi temp2,TIMER_MSECS+6
162 ;---------------------------------------------------------------------