Dosbox中的算术

问题描述

我使用dosBox编写了一个算术程序。输入必须为4和3,但结果应为16。是吗?

mov ah,4
mov al,3
add ah,ah
add ah,al
inc ah

解决方法

否,两次public class NikashaModels { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int NIKASHAId { get; set; } [Required] public decimal MAPPED_AMOUNT { get; set; } [ForeignKey("ProgramId")] public ProgramModels Program { get; set; } public int ProgramId { get; set; } [ForeignKey("SchoolId")] public SchoolModels School { get; set; } public int SchoolId { get; set; } } public class SchoolModels { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int SchoolId { get; set; } public string SCHOOL_NAME { get; set; } } public class ProgramModels { [Key] public int ProgramId { get; set; } public string PROGRAM_NAME { get; set; } } 操作会导致翻倍,因此结果必须为add ah,ah

您可以逐步查看寄存器内容来调试汇编代码吗?