Rev 459 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 459 | Rev 462 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | format MS COFF |
8 | format MS COFF |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | include 'proc32.inc' |
10 | include 'proc32.inc' |
Line -... | Line 11... | ||
- | 11 | include 'imports.inc' |
|
- | 12 | ||
- | 13 | API_VERSION equ 0 |
|
11 | include 'imports.inc' |
14 | UART_VERSION equ API_VERSION |
12 | 15 | ||
Line 13... | Line 16... | ||
13 | PG_SW equ 0x003 |
16 | PG_SW equ 0x003 |
14 | page_tabs equ 0xFDC00000 ;hack |
17 | page_tabs equ 0xFDC00000 ;hack |
Line 188... | Line 191... | ||
188 | CONNECTION CONNECTION |
191 | CONNECTION CONNECTION |
189 | end virtual |
192 | end virtual |
Line 190... | Line 193... | ||
190 | 193 | ||
Line 191... | Line -... | ||
191 | CONNECTION_SIZE equ 7*4 |
- | |
192 | - | ||
193 | UART_VERSION equ 0x12345678 ;debug |
194 | CONNECTION_SIZE equ 7*4 |
194 | 195 | ||
195 | public START |
196 | public START |
Line 196... | Line 197... | ||
196 | public service_proc |
197 | public service_proc |
Line 315... | Line 316... | ||
315 | 316 | ||
316 | cmp eax, SRV_GETVERSION |
317 | cmp eax, SRV_GETVERSION |
Line 317... | Line 318... | ||
317 | jne @F |
318 | jne @F |
- | 319 | ||
- | 320 | mov eax, [ebx+output] |
|
318 | 321 | cmp [ebx+out_size], 4 |
|
319 | mov eax, [ebx+output] |
322 | jne .fail |
320 | mov [eax], dword UART_VERSION |
323 | mov [eax], dword UART_VERSION |
321 | xor eax, eax |
324 | xor eax, eax |
322 | ret |
325 | ret |
323 | @@: |
326 | @@: |
Line -... | Line 327... | ||
- | 327 | cmp eax, PORT_OPEN |
|
- | 328 | jne @F |
|
- | 329 | ||
324 | cmp eax, PORT_OPEN |
330 | cmp [ebx+out_size], 4 |
325 | jne @F |
331 | jne .fail |
326 | 332 | ||
327 | mov ebx, [ebx+input] |
333 | mov ebx, [ebx+input] |
328 | mov eax, [ebx] |
334 | mov eax, [ebx] |
Line 953... | Line 959... | ||
953 | isr_action dd isr_modem |
959 | isr_action dd isr_modem |
954 | dd transmit |
960 | dd transmit |
955 | dd isr_recieve |
961 | dd isr_recieve |
956 | dd isr_line |
962 | dd isr_line |
Line 957... | Line 963... | ||
957 | 963 | ||
Line 958... | Line 964... | ||
958 | version dd 0x00040000 |
964 | version dd (5 shl 16) or (UART_VERSION and 0xFFFF) |
Line 959... | Line 965... | ||
959 | 965 |