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

📄 dec_div.lst

📁 16位10进制除法程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
A51 MACRO ASSEMBLER  DEC_DIV                                                              10/11/2007 15:03:02 PAGE     1


MACRO ASSEMBLER A51 V8.00d
OBJECT MODULE PLACED IN DEC_DIV.OBJ
ASSEMBLER INVOKED BY: C:\Program Files\Keil\C51\BIN\A51.EXE DEC_DIV.asm SET(SMALL) DEBUG EP

LOC  OBJ            LINE     SOURCE

                       1     ;*****************************************************************************
                       2     ;           dec_div.asm   Copyright (c)  2007, Artech Inc.                              
                       3     ; Create: by yan zhuosen, 09/24/2007                                                       
                                                  
                       4     ; Version: 8.08a                                                                           
                                                                   
                       5     ; Last Version:                                                                            
                                                                  
                       6     ; Description:                                                                             
                                                                  
                       7     ;       1. this is a dec division program                                                  
                                                          
                       8     ;       2. Use AT89C51RC 4K Flash Memory, 128 Bytes on-chip RAM                         
                       9     ;
                      10     ;*****************************************************************************
                      11     
                      12     ;*****************************************************************************
                      13     ;                                               Modification History                       
                                                          
                      14     ;-----------------------------------------------------------------------------
                      15     ;                                                               none                       
                                                                          
                      16     ;*****************************************************************************  
                      17     ;
                      18     ;
                      19     ; Macro define
                      20     
                      21     mEI             macro                                   ; enable all interrupts  
                      22                     setb    EA
                      23                     endm    mDI
                      24                     
                      25     mDI             macro                                   ; disable all interrupts  
                      26                     clr     EA
                      27                     endm    mEI
                      28     
                      29     ;-----------------------------------------------------------------------------
                      30     ; ioPort define
                      31     ;-----------------------------------------------------------------------------
                      32     ;       none    
                      33     ;-----------------------------------------------------------------------------
                      34     ; Constants define
                      35     ;-----------------------------------------------------------------------------
                      36     ;
  0080                37             BUF_START               equ             80h                     ; define buffer sta
                             rt address
  00FF                38             BUF_END                 equ             0ffh                    ; define buffer end
                              address
  0080                39             BUF_SIZE                equ             80h                     ; define buffer siz
                             e
                      40     
  0080                41             DIVI_START              equ             80h                     ; define dividend  
                             buffer start address
  0087                42             DIDI_END                equ             87h                     ; define dividend  
                             buffer end address
  0008                43             DIDI_SIZE               equ             08h                     ; define dividend  
                             buffer size
                      44     
  0090                45             DIV_START               equ             90h                     ; define divisor bu
A51 MACRO ASSEMBLER  DEC_DIV                                                              10/11/2007 15:03:02 PAGE     2

                             ffer start address
  0097                46             DIV_END                 equ             97h                     ; define divisor bu
                             ffer end address
  0008                47             DIV_SIZE                equ             08h                     ; define divisor bu
                             ffer size
                      48     
  00A0                49             QUTO_START              equ             0a0h                    ; define quotient  
                             buffer start address
  00A7                50             QUTO_END                equ             0a7h                    ; define quotient  
                             buffer end address
  0008                51             QUTO_SIZE               equ             08h                     ; define quotient  
                             buffer size
                      52     
  00A8                53             REMA_START              equ             0a8h                    ; define remainder 
                              buffer start address
  00AF                54             REMA_END                equ             0afh                    ; define remainder 
                              buffer end address
  0008                55             REMA_SIZE               equ             08h                     ; define remainder 
                              buffer size
                      56             
                      57             
                      58     ;-----------------------------------------------------------------------------
                      59     ; Variables define
                      60     ;-----------------------------------------------------------------------------
                      61     ;
                      62     
                      63     ;*****************************************************************************
                      64     ; Vector area   
                      65     ;               
0000                  66             org             0000h
                      67             
0000 2100             68             ajmp            _Reset  
                      69     
                      70             
                      71     ;*****************************************************************************
                      72     ; Reset and Main Program                
                      73     ;
0100                  74             org             0100h
                      75             
0100                  76     _Reset:
                      77     
                      78             mDI
0102 310C             80             call    ClearMemory                             ; clear RAM
                      81     ;       call    InitProgram                             ; initialize variables
0104 3122             82             call    Write                                   ; 
                      83             mEI
                      85             ;;------------------------------------------------------------------------
                      86             ;;-------------------------- Main ----------------------------------------
0108                  87     _Main:
                      88     
0108 3155             89             call    Dec_div                                 
                      90     
                      91     
                      92     

⌨️ 快捷键说明

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