From a9f1cd6a67d6d5b5f944a846f621fcd84bb5d13f Mon Sep 17 00:00:00 2001 From: Tan Kian-ting Date: Mon, 16 Dec 2024 23:47:36 +0800 Subject: [PATCH] remove the asm code --- 230810組合語言/ex.out | Bin 16720 -> 0 bytes 230810組合語言/ex.s | 73 ------------------------------------------ 2 files changed, 73 deletions(-) delete mode 100755 230810組合語言/ex.out delete mode 100644 230810組合語言/ex.s diff --git a/230810組合語言/ex.out b/230810組合語言/ex.out deleted file mode 100755 index f4faa5f96bcb1952022202ff79d74b1e052e2cc6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16720 zcmeHOU2Ggz6~41}8ar*)YddM(q}0>aiA=y_ubo&HsqJz6lig;WnAm|-6%4c9vAtn; z$L!9wc8NleL1+n;%u7LPD}@)D2MVp=ArdIqN);1?pcN0~0jW{dqDFz%RSQar$a2n| zb2j6tT~$=-3v;Bo=jWd9+&gFP%--3#_glk>k&vPYrjY0psOb@1n%q)|u^y?Ctw(GX zx@Zv(i95hj4Tmmkkh>D|D(m|YYs3J}! zoJu(6uTVdkb3XC3@#vv^_EhPhq3&`O6(CiXLilmV33r_QnGcaab8G`?{7onIzqB_- zxN22~5!IAW<}I!n#un8R|03Wvll*ZQU*@CK-bUA9RdJ&+Csnj((#h_wJ zwaxW(w{`E;3bxiM0eJ4%29BwNhmVQSX|aSh#-qFq4ooZ7?=~;K@YK)e8=sDSz5LP# z*S7rO%(FK+24c_$3H^CUppJEXp#E_QF%9cDH*R3x4|a7Oe_|(r&Jogp*daJO>=%*(+794+or*iswRrX| zWc$?*pN88YBs$O;XtiIL9PbT|frc9%I}Ks!*QD!`|4AjrV~X$Ib_yZ?jO!ryCRXEt4H7b5oEB_~vVCARQ#%|)4!^1j!>T;BBtly%KI zNT|e$3^bSZi{wz86`2lwq~!2SIxt*-eyG9LP0 zysa*t*I}X_>&4P(JdZBeh1%bup?q~}@#55NXKeq1^#AtTl9g6t%WwC`mTy$WluNN! zZ#ngq2%9N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H<+j-^fK zirQ@6p0)DMyvLL*reP;gIz^^|1MxN-0@8iPEX)WkHJ^hfT<+xEn#ZktA#LZ@CBAOxn`O2;GNd%lP z!YxR11l%8}%W%9;kmrli2nG6j=^;>Xjus+g58-)VoJw|P?kt2gA-X~I;*S%a_s8LU z#7q1fV_O^qFP?voPtwFwWk=$E{FlN0FPIZ@|IbqUX9>^ee+S|H{Wrmmb700V5q^pA zUn3m$QGtW;JYP+N4P6<}^KO+o%JXb+k%Te4^bJsOj>~wS*Pb9ex5xcwKjx0eRkkh4Ac$c=(n6Q2u@bHp~gf zul$a{PahJ$54oD#SC)}K3x^l4((jN;com&IL}vVDmGnH6UOfL!>f|trl^$Xon_d9H zi|2X5V!i9Z?|bY|X<=3TlJE^|QFT{RUFP>^o%yf94cq7I$Md6V!ne3#DkbCC;Lgu( z<6EiyR>IG)BXPd|Z2mI{VL0e^smw=t|ES-eb>^=Dw$6j+`EL{L=Vd=|k;FRl>tMyP z!|n6Dk@o}hzF!>wNQ~p__&(S$e~jmSldJ9MjdQKF#CYa6q1uaw36cxwaGC0|O366p z@J_S_uM%D*{QVWAD=?1DHGoGO_n+r;eT3(6!T#7+FKwmv$-Pp=_|H`=uE2QacN5;{ zCT1z1KW@b5xN8IaSpv5D{JC8=M>oL#j_~~d1pE8({Ttx_N_dNb#Qpd~geUik_dwJY zX&6`RjA#C(4e&PMAFLorhEXOD*g+sx$>|8 diff --git a/230810組合語言/ex.s b/230810組合語言/ex.s deleted file mode 100644 index 4953fd9..0000000 --- a/230810組合語言/ex.s +++ /dev/null @@ -1,73 +0,0 @@ -# (c) 2023 Tan, Kian-ting -# === -# Tiananmen Massacre - Hong Kong Independence - Free Hong Kong, Tibet, Southern Mongolia -# Uyghur Concentration Camps - Taiwan Independence - Chinese Internet Censorships -# Red Terror by Chinese Communist Party -# === -# 9 * 9 multipulation table - -# storing string - .data -format: .asciz "%d * %d = %d\n" #string succeeded by '\0' - - .text -.global main - -loop1: - # b += 1 - addq $1, %r9 - - # a = 0 - movq $1, %r8 - - # goto loop - jmp loop - -loop: - - mov %r8, %rsi - mov %r9, %rdx - - # rcx = r8 * r9 - mov %r8, %rcx - imulq %r9, %rcx - - xor %rax, %rax # rax = 0 - # backup r8, rdi, r9 - mov %r8, %r12 - mov %rdi, %r13 - mov %r9, %r14 - # printf(rdi, rsi, rdx, rcx); - call printf - - # restore r8, rdi, r9 - mov %r14, %r9 - mov %r13, %rdi - mov %r12, %r8 - - # a += 1 - addq $1, %r8 - - # IF a <= 9 goto loop - cmp $9, %r8 - jle loop - - # IF b < 9 goto loop1 - cmp $9, %r9 - jl loop1 - - # goto final - jmp final -main: - - push %rbx - mov $1, %r8 # r8 = a - mov $1, %r9 # r9 = b - mov $0, %r15 - mov $format, %rdi - jmp loop - -final: - pop %rbx - ret -