📄 http:^^cs.nyu.edu^cs^dept_info^course_home_pages^fall96^v22.0201.002^bitcnt.html
字号:
Date: Tue, 14 Jan 1997 20:09:36 GMTServer: NCSA/1.4.1Content-type: text/htmlLast-modified: Mon, 30 Sep 1996 23:02:56 GMTContent-length: 692<HTML><HEAD> <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> <TITLE>Bit count of a byte - version one</TITLE></HEAD><BODY BGCOLOR="#fee7cb"><PRE>;This program counts the number of one bits found in byte 01FFH, and;put the count (a number between 0 and 8) into location 0200H.;; mov al, byte ptr 01ffH ;get the input mov byte ptr 0200h, 0 ;zero out count of "1" bits mov bl, 8 ;shift left 8 timeslp: add al, al ;double number = shift left jnc checkend add byte ptr 0200h, 1checkend: sub bl, 1 jnz lp hlt end</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -