看板 b885060xx 關於我們 聯絡資訊
sorry 借po一下 重金懸賞~~ 急徵程式 是用MASM 6.11的軟體 語法類似如下 階層連加: 1!+2!+3!+4!+5!+6!+7!+8! 答案如下 .model small .stack 100h .code prod proc near mov ax,1 mov cx,si l1: mul cx loop l1 ret prod endp convert proc near xor dx,dx mov cx,100 div cx push dx xor dx,dx div cx aam add ax,3030h xchg dx,ax aam add ax,3030h pop di xchg di,ax aam add ax,3030h ret convert endp print_ax proc near mov dl,ah mov ah,02 push ax int 21h pop ax mov dl,al int 21h ret print_ax endp .startup mov si,1 mov bx,0 mov cx,8 l2: push cx call prod add bx,ax pop cx add si,1 loop l2 mov ax,bx call convert push ax mov ax,dx call print_ax mov ax,di call print_ax pop ax call print_ax .exit end ------------------------------- 以上是語法範例 再一個範例 輸入4位16進位數字轉為6位10進位 如輸入0100H 答案是000256 輸入0200H 答案是000512 1.Write a prgram to perfor the following function: (a)Let the user key in a 4-digit decimal number (b)Transform the decimal number into a hexadecimal number (c)Display the hexadecimal number on screen (d)Jump to step (a) unless a CONTROL-Ckey is pressed On the screen,you should shew the following messages: 4-digit decimal number=0256 4-digit hexadecimal number=0100 4-digit decimal number=0512 4-digit hexadecimal number=0200 現在我要徵 二進位,八進位,十進位,十六進位互轉 例如 輸入4位16進位數字轉為6位10進位 如輸入0100H 答案是000256 輸入0200H 答案是000512 也就是請你給我 2進位轉8進位 2進位轉10進位 2進位轉16進位 8轉2 8轉10 8轉16 10轉2 10轉8 10轉16 16轉2 16轉8 16轉10 共12個獨立程式 意者請回信或電話聯絡 酬金再詳談 0918140872 -- ※ 發信站: 批踢踢實業坊(ptt.csie.ntu.edu.tw) ◆ From: 203.73.104.100
Foxwall:這該不會是作業吧...-.- 推 140.112.30.24 01/17
dinocookie:鐵定是作業, 作業價碼 400萬 推 61.59.150.233 01/17
dinocookie:哦哦~是肯出400萬才考慮給答案, 不要誤會 推 61.59.150.233 01/17