装配错误 A2071:初始值对于特定大小来说太大

Assembly Error A2071: initializer magnitude too large for specific size

所以我对汇编非常非常陌生,我们有一个学校作业来计算函数: z = x^2 * y - 16 (4 - y)

我一直在使用 MASM 尝试编译它以确定它是否能正常工作,但我一直收到错误消息,错误 2071:初始值大小对于指定大小而言太大。

我的代码是:

title Assignment3_JoelCatterall.asm
.model small
.stack 100h

.data
include const.inc

x   dw  ?
y   dw  ?
z   dw  ?

ntrfir   db      'Enter first number $'
ntrsec   db       cr, lf, 'Enter second number $'
pntequ   db       cr, lf, 'The point (', x, ', ', y, ') is $'

.code

extrn getint: proc, putint: proc

main proc

; -- initalize DS
    mov     ax, @data
    mov     ds, ax

;write "Enter first number" 
    mov     ah, dispstr
    mov     dx, offset ntrfir
    int     dosfunc

; read x
    call    getint
    mov     x, ax

;write cr, lf, 'Enter second number'
    mov     ah, dispstr
    mov     dx, offset ntrfir
    int     dosfunc

; read y
    call    getint
    mov     y, ax;

; z (x,y) = x^2 * y - 16 * (4 - y)
    mov     ax, x
    imul    x
    imul    y
    mov     cx, ax
    mov     ax, 16
    mov     bx, 4
    sub     bx, y
    imul    ax
    sub     cx, bx
    mov     z, cx

; write cr, lf, 'The point(x, y) is :'
    mov     ah, dispstr
    mov     dx, offset pntequ
    int     dosfunc
    mov     ax, z
    call    putint

 ; return -- to DOS
    mov     ah, ret2dos
    int     dosfunc

 main    endp
    end     main 

正在提示错误:

     pntequ     db      cr, lf, 'The point (', x, ', ', y, ') is $'

我试图将 db 更改为 dwdd 但随后收到错误消息:

Error A2084: constant value too large

就像我说的,我对此很陌生,所以无论您提供什么帮助或信息都会有很大帮助! 谢谢!

对于 db ... 使用“...”而不是“...”。