BITS 16ORG 0x100global _startsection .text mov ax, 123 ; число, которое надо вывести mov cl, 10 div cl add ah, '0' mov [mytext+2], ah cbw mov cl, 10 div cl add ah, '0' mov [mytext+1], ah cbw mov cl, 10 div cl add ah, '0' mov [mytext], ah mov dx, mytext mov ah, 0x09 int 0x21 mov ah, 0x4c int 0x21section .datamytext db "___$"
BITS 16ORG 0x100global _startsection .text mov ax, 123 ; число, которое надо вывести mov cl, 10 div cl add ah, '0' mov [mytext+2], ah cbw mov cl, 10 div cl add ah, '0' mov [mytext+1], ah add al, '0' mov [mytext+0], al mov dx, mytext mov ah, 0x09 int 0x21 mov ah, 0x4c int 0x21section .datamytext db "___$"
- hanabira 0.6.1320- + wakaba + futallaby + futaba -