OpenCores
URL https://opencores.org/ocsvn/next186mp3/next186mp3/trunk

Subversion Repositories next186mp3

[/] [next186mp3/] [trunk/] [SW/] [BIOS/] [BootLoader/] [bootload.asm] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 ndumitrach
.186
2
.model tiny
3
.code
4
        org 100h
5
start:
6
      cli
7
      mov ax,30h
8
      mov ss,ax
9
      mov sp,100h
10
      push 0f000h
11
        pop ds
12
      mov al,34h
13
      out 43h,al
14
      xor al,al
15
      out 40h,al
16
      out 40h,al
17
 
18
 
19
        mov si,0e000h
20
        call srecb
21
        mov bh,ah
22
        call srecb
23
        mov bl,ah
24
 
25
sloop:
26
        call srecb
27
        mov [si],ah
28
        inc si
29
        dec bx
30
        jnz sloop
31
        db 0eah
32
      dw 0,-1
33
 
34
 
35
; ----------------  serial receive byte 115200 bps --------------
36
srecb:  mov ah,80h
37
        mov dx,3dah
38
        mov cx,-5aeh ; (half start bit)
39
srstb:  in al,dx
40
          shr al,2
41
          jc srstb
42
 
43
        in al,40h ; lo counter
44
        add ch,al
45
        in al,40h ; hi counter, ignore
46
 
47
l1:
48
        call dlybit
49
          in al,dx
50
        shr al,2
51
          rcr ah,1
52
          jnc l1
53
 
54
dlybit:
55
        sub cx,0a5bh  ;  (full bit)
56
dly1:
57
        in al,40h
58
        cmp al,ch
59
        in al,40h
60
        jnz dly1
61
        ret
62
 
63
 
64
end start

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.