墨染年华吧 关注:18贴子:613
  • 2回复贴,共1

[年华如锦]代码暂记

只看楼主收藏回复

一楼


1楼2013-06-22 19:59回复
    DATA SEGMENT USE16
    BUF DW -10, -20, 0 ,10, 20 ,30, -50, 0, -78, 10
    N = ($-BUF)/2
    AVG1 DW 0 ;
    AVG2 DW 0;
    DATA ENDS
    STACK SEGMENT STACK USE16
    DB 200 DUP(0)
    STACK ENDS
    CODE SEGMENT USE16
    ASSUME CS:CODE, SS:STACK, DS:DATA
    START:
    MOV AX, DATA
    MOV DS, AX
    MOV AH, 4CH
    INT 21H
    CODE ENDS
    END START


    2楼2013-06-22 20:03
    回复
      DATA SEGMENT USE16
      BUF DW -10, -20, 0 ,10, 20 ,30, -50, 0, -78, 10
      N = ($-BUF)/2
      AVG1 DW 0 ;
      AVG2 DW 0;
      DATA ENDS
      STACK SEGMENT STACK USE16
      DB 200 DUP(0)
      STACK ENDS
      CODE SEGMENT USE16
      ASSUME CS:CODE, SS:STACK, DS:DATA
      START:
      MOV AX, DATA
      MOV DS, AX
      MOV AH, 4CH
      INT 21H
      CODE ENDS
      END START


      3楼2013-06-22 20:03
      回复