delay.asm

来自「转载别人ds18b20proteus作品希望对proteus library里没」· 汇编 代码 · 共 27 行

ASM
27
字号
                ;**********************************
                ;*    The Delay routines          *
                ;*                                *
                ;* used by Wait <time>            *
                ;**********************************

    include tempdemo.inc

    global longdelay, shortdelay

PROG CODE

longdelay   movwf   tempone
ldloop1     clrf    temptwo
ldloop2     decfsz  temptwo, F  ;becomes 11111111
            goto    ldloop2
            decfsz  tempone, F
            goto    ldloop1
            return

shortdelay  movwf   tempone
sdloop      decfsz  tempone, F
            goto    sdloop
            return

        end

⌨️ 快捷键说明

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