⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boot_ star.asm

📁 首先
💻 ASM
字号:
;这是一个 显示汉字,化五角星的引导程序。

;在masm5.0编译通过。

;http://chinaos.com/
;mailto:asmcos@yeah.net
;何家胜 2001.7.1



CODE		SEGMENT
		ASSUME CS:CODE,DS:CODE
                ORG 00H



start:  
        mov ax,0
        mov es,ax
        mov ax,202h
        mov bx,7e00h
        mov cx,2     
        mov dx,0
        int 13h
        cmp ax,2
        jnz  start

        mov    ax,1100h             
        mov    bx,1000h             
        mov    cx,2ah                 
        mov    dx,00ceh             
        push   ax
        mov    ax,seg star
        mov    es,ax
        pop    ax
        mov    bp,offset star   +7c00h      
        int    10h
init_screen:
        
        mov ah,2
        mov bx,0
        mov dx,0h
        int 10h
        mov ax,920h
        mov bx,4eh
        mov cx,550h
        int 10h
        
        ;输出五角星
        mov    ax,1301h                 
        mov    dx,seg str
        mov    es,dx
        mov    bp,offset str  +7c00h
        mov    bx,4eh
        mov    cx,2h
        mov    dx,410h   
        int    10h       
       
        mov    ax,1301h                 
        mov    dx,seg str
        mov    es,dx
        mov    bp,offset str  +7c00h
        mov    bx,4eh
        mov    cx,2h
        mov    dx,614h   
        int    10h   

        mov    ax,1301h                 
        mov    dx,seg str
        mov    es,dx
        mov    bp,offset str  +7c00h
        mov    bx,4eh
        mov    cx,2h
        mov    dx,814h   
        int    10h       
       

        mov    ax,1301h                 
        mov    dx,seg str
        mov    es,dx
        mov    bp,offset str  +7c00h
        mov    bx,4eh
        mov    cx,2h
        mov    dx,0a10h   
        int    10h       
        
        mov    ax,1301h                 
        mov    dx,seg bigstar1
        mov    es,dx
        mov    bp,offset bigstar1  +7c00h
        mov    bx,4eh
        mov    cx,4h
        mov    dx,706h   
        int    10h

        mov    ax,1301h                 
        mov    dx,seg bigstar2
        mov    es,dx
        mov    bp,offset bigstar2  +7c00h
        mov    bx,4eh
        mov    cx,4h
        mov    dx,806h   
        int    10h
;           “红旗飘起来了,什么我们做不到?!”
;                   献给党的80岁生日-----中国操作系统
;          
;             http://chinsos.com/ 
;             mailto:asmcos.yeah.net
        mov ah,2
        mov dx,1100h
        int 10h
        mov ax,900h
        mov bx,1fh
        mov cx,350h
        int 10h
        

        mov    ax,1301h                 
        mov    dx,seg hanzi
        mov    es,dx
        mov    bp,offset hanzi  +7c00h
        mov    bx,01fh
        mov    cx,0ach
        mov    dx,1305h   
        int    10h


        int    3
        mov    ah,4ch
        int    21h          
 org    510  

endflag  db  55h,0aah	

star    db   01h,01h,03h,03h,07h,07h,0ffh,7fh,3fh,1fh,1fh,1fh,3eh,38h,70h,40h

        db   00h,00h,80h,80h,0c0h,0c0h,0ffh,0feh,0f8h,0f0h,0f0h,0f0h,0f8h,38h,1ch,04h 
       ; big star
         db  0,0,0,0,0,0,0,0,0,0,0,0,0,0ffh,7fh,1fh
         db  1,1,3,3,3,7,7,7,0fh,0fh,0fh,1fh,1fh,0ffh,0ffh,0ffh
        
         db 80h,80h,0c0h,0c0h,0c0h,0e0h,0e0h,0e0h,0f0h,0f0h,0f0h,0f8h,0f8h,0ffh,0ffh,0ffh
         db 0,0,0,0,0,0,0,0,0,0,0,0,0,0ffh,0feh,0f8h
         
         db 0fh,03,01,0,0,0,1,1,1,3,3,3,7,7,6,8
         db 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0fch,0f8h,0e0h,0c0h,0,0,0
         
         db 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,07fh,01fh,0fh,03h,1,0,0
         db 0f0h,0c0h,80h,0,0,0,80h,80h,80h,0c0h,0c0h,0e0h,0e0h,0e0h,70h,10h

        ;红
         db 10h,10h,20h,25h,44h,0f8h,8,10h,20h,0fch,40h,0,1ch,0e0h,47h,0
         db 0,0,4,0feh,20h,20h,20h,20h,20h,20h,20h,20h,20h,24h,0feh,0
 
 
        ;旗
          db 20h,10h,0fdh,21h,22h,23h,3ch,24h,24h,24h,24h,47h,54h,89h,02h,0
          db 80h,80h,0feh,0,88h,0feh,88h,0f8h,88h,0f8h,88h,0feh,88h,0ch,04h,0

          db 0,0feh,28h,0fch,0aah,0feh,0,7ch,0,0feh,10h,54h,95h,51h,22h,0
          db 0,0fch,84h,84h,84h,0cch,0d4h,0a4h,0b4h,0d4h,0cch,86h,06,02,02,0
      
db 08,08,08,7eh,08,08,0feh,08,48h,4eh,48h,48h,48h,0a8h,9fh,00
          db 00,00,0f8h,08,08,08,0f8h,80h,80h,84h,84h,7ch,00,00,0feh,00

          db 1,1,7fh,1,9,5,3,0ffh,1,3,5,9,31h,0c1h,1,1
          db 0,0,0feh,0,30h,20h,40h,0ffh,80h,40h,20h,18h,7,4,0,0

     

          db 0,0ffh,0,0,3,1,1,1,1,1,1,1,1,1,0ah,4
          db 0,0f8h,30h,0c0h,0,0,0,0,0,0,0,0,0,0,0,0
;献
          
          db 8,8,0ffh,10h,10h,7fh,55h,55h,7fh,49h,7fh,49h,49h,49h,45h,42h
          db 20h,20h,0a8h,24h,20h,0feh,20h,20h,50h,50h,50h,48h,48h,44h,46h,84h
  
          db 10h,10h,20h,20h,49h,0f2h,15h,20h,40h,0f9h,1,1,19h,0e1h,1,0
          db 40h,40h, 0a0h,90h,8,0eh,0f4h,0,0,0f8h,8,8,8,8,0f8h,0 

          db 2,22h,12h,7fh,40h,80h,1fh,10h,10h,1fh,8,8,10h,10h,20h,0c0h
          db 0,20h,40,0fch,8h,10h,0c0h,40h,40h,0c0h,80h,88h,88h,88h,78h,0
;中
          db 2,2,42h,7fh,42h,42h,42h,42h,42h,7fh,42h,2,2,2,2,2
          db 0,0,10h,0f8h,10h,10h,10h,10h,10h,0f0h,10h,0,0,0,0,0

          db 0,7fh,40h,5fh,41h,41h,41h,4fh,41h,41h,41h,5fh,40h,40h,7fh,40h
          db 0,0fch,4,0f4h,4,4,4,0e4h,44h,24h,24h,0f4h,4,4,0fch,4

          db 21h,21h,21h,0f8h,23h,22h,2ah,33h,60h,0a7h,20h,20h,21h,22h,0ach,40h
          db 0f8h,8,0f8h,0,0bch,0a4h,0a4h,0bch,40h,0feh,60h,0d0h,48h,4eh,044h,40h 
;作
          db 8,0ch,9,13h,12h,34h,50h,90h,10h,10h,10h,10h,10h,10h,10h,10h
          db 80h,80h,0,0feh,80h,88h,0fch,80h,80h,84h,0feh,80h,80h,80h,80h,80h

          db 0,3fh,2,4,8,1fh,3,0ch,3fh,10h,4,8,10h,20h,42h,1
          db 7ch,80h,20h,20h,40h,80h,20h,10h,0f8h,8ch,0a0h,90h,88h,84h,84h,0

          db 10h,10h,23h,20h,44h,0f8h,9,0bh,10h,20h,7ch,0,1,1dh,0e2h,4
          db 40h,20h,0feh,40h,40h,88h,4,0feh,94h,90h,92h,92h,12h,12h,0eh,0






STR       db   0ceh,0cfh	
bigstar1  db 0d0h,0d1h,0d2h,0d3h
bigstar2  db 0d4h,0d5h,0d6h,0d7h
hanzi     db 0d8h,0d9h,0dah,0dbh,0dch,0ddh,0deh,0dfh,0e0h,0e1h,0e2h,0e3h,'!','     ',0e4h,0e5h,0e6h,0e7h,0e8h,0e9h,'!!',13,10,13,10,'                           ' 
         db '-----',0eah,0ebh,0ech,0edh,0eeh,0efh,0f0h,0f1h,0f2h,0f3h,0f4h,0f5h,13,10
          db '                          http://chinaos.com/',13,10,'                         mailto:asmcos@yeah.net',13,10,10,10
    ;    org    510  

end_flag      db  55h,0aah
CODE		ENDS
		END START

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -