GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — assembler/p270.ASM at master · lishiyucn/assembler

Expand file tree

/

p270.ASM

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
25 lines (19 loc) · 594 Bytes
/

p270.ASM

Copy path

File metadata and controls

25 lines (19 loc) · 594 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
assume cs:code
code segment
start:mov al,8 ;端口传值必须经过al,把8传送给al
out 70h,al ;在70h地址端口写入要访问的地址单元
in al,71h ;从71h端口读出我们要访问的端口单元地址的数据
mov ah,al
mov cl,4
shr ah,cl ;把低四位,向右移除,剩下高四位,作为十位数码值
add al,00001111b ;and是清零, 0--0 1不变 or是置1 1--1 0不变
add ah,30h
add al,30h ;BCD码值 + 30h =十进制数对应的ASCII码
mov bx,0b800h
mov es,bx
mov BYTE ptr es:[160*12+40*2],ah
mov BYTE ptr es:[160*12+40*2+2],al
mov ax,4c00h
int 21h
code ends
end start
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.