From 81222a26f9dadf464a3f1012966fd9a0fba63e1c Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Tue, 27 Mar 2018 21:35:41 +0200 Subject: [PATCH] MP_02 intToDual --- 01_ENV/a.out | Bin 6160 -> 6160 bytes 01_ENV/func1.o | Bin 2272 -> 2272 bytes 01_ENV/main.o | Bin 2632 -> 2632 bytes 02_MENT/a.out | Bin 19960 -> 26960 bytes 02_MENT/limits.out | Bin 27728 -> 27728 bytes 02_MENT/main_02_MENT.cpp | 25 +++++++++++++++++++------ 02_MENT/println.out | Bin 20336 -> 20336 bytes 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/01_ENV/a.out b/01_ENV/a.out index 9793008e7231c8c7268743ba6d20dd7fa8d1db6c..89599751399f76d3debce24f734466bde4ebeaec 100755 GIT binary patch delta 24 fcmbPWFu`C$j{vu!xuKb{fvJU_nepc70+s9lTZ#tg delta 24 fcmbPWFu`C$j{vuUsiB2|iIKUUnbGFy0+s9lTTuq% diff --git a/01_ENV/func1.o b/01_ENV/func1.o index 00b78d58e1946cb9acd4bb5085f0c2173866ed44..68c01706955729e819718f115f8be231001d418b 100644 GIT binary patch delta 24 gcmaDL_&{*O3r223b3-#@15*nhazbRoRVHpjb3-#@15*nhazbRoRVHo&Q$q^_6C-myGo#H9m@?P_W!MLR diff --git a/02_MENT/a.out b/02_MENT/a.out index bb90f2369014ae8db8b19f4b3cdca03140fdcb38..6ce0451451ac0df101f7b4aae80d4884c50194ab 100755 GIT binary patch literal 26960 zcmeHweRNdUb??=O0b{HY*an3-@faIh*hb6<5W*()m0<8yJTem`rPQ^1HH-!{iKJ09 zGg!EhpQw<{^>`e`Dr)5U6?kM=q5@mdorUIqrk10_vUIj_Z932F7RY`;4RNtA|Q zImK3gd*5@e?tEo|^4{w|9GKZ>?|sfb`|PvN$NiYC|Kjs+EiEZgWGYquKq2h#Qk6;8 zx1v<;WK_`Vm1`AM`G|6}G7pq%@KKpV(8@_TEksMWK$I&3EXSw5)FRZE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IO>w2rG2RxViwY9VtwohiljVeE%H_>!9txc7 z8i>WM3-Vtoc{!&Q+Eg;GAlY_%Ciz%x3`pdKJNYTk9*-@-R=>rHvv34C&^tK-WU6{j zi&=@k;K>wT+G$k!bdCn?xxIzsz;>mc?iJNO(sXO0aO=+i=<*`nNna0g{wpBe?~v>_ zT&=-KrZ4vL;+h%eCYhq1-B00+?drzeAfVA}!7f$90uJ`}2xlZ}1f9rft~UHTgmXtE z?(Fi%x`eZHR|LuyGj@jeN%u;^iKJ_M^B_2TqkQ>x2D{`P zSyv}?6$Yco<+k66S~jfvEz5?gqbYxPC;*ixtmDhcOAT};SLnF} zep02+|JAu{gS_Ea&m~j?Bx^611Hn(Gw0>Ku2UzC+UL1^NzVNd;tGI#T)$*wNeWA{I z>D_TEbr!&xkX7)rC#zf!jLz1SzIq;VP!f71#LsH(r_x_4t*imW(L-8aof|ty0YyDe zu`tVqsuQI1KYEs-+E?exPW+CclIy>cQ*aAp=-G(E)j2e0-hwwoMo`Ed@>BUwG%7pr zp|Mf=>b!bVwy%*8O78fn{@*Tnt655<&$T`Bfs%S2MEW=#OSiA|{}wcg2^ReU*k5cY7=ef2yvSq&nJlC!W3uIO)qL9wUWSI;BV|5T}t$>p53r~Dd&F7-dHzoG*e{^v>_ z6e&3-;!Cxw;JcvN_0!KcT$aX&Qj}2XDfqh_eRbY7BK3>4ugso7g={JR$K*NkNvXe- zoU;{&txnZX@F5W?P9!c$zgH0?ROakZ#g1LHg*JAS7PbKfIXniT)QB9Wv dw6UX{o3nmZyB3$u6btJ=?X@IIa};t=@xPeYQlkI> diff --git a/02_MENT/limits.out b/02_MENT/limits.out index fdc07bd726cfa61634de4d8070181766ed6c3299..080e0a5c439bd522d3c17105a176d9a3bbdb7ea6 100755 GIT binary patch delta 26 hcmca`gYm)*#tjyZ+(xEG#)byQ26|>Do1GnbwE=`d2p#|c delta 26 hcmca`gYm)*#tjyZ+=k|cX2u4l7J6pJo1GnbwE=|I2rK{q diff --git a/02_MENT/main_02_MENT.cpp b/02_MENT/main_02_MENT.cpp index 99fd0b8..185eb92 100644 --- a/02_MENT/main_02_MENT.cpp +++ b/02_MENT/main_02_MENT.cpp @@ -23,13 +23,13 @@ return value; } int hexStringToInt(PascalString binaryDigits) { -int returnValue = 0; + int returnValue = 0; -for(int i = 0; i <= binaryDigits.length; ++i) { - returnValue += binaryDigits.characters[i]; -} + for(int i = 0; i <= binaryDigits.length; ++i) { + returnValue += binaryDigits.characters[i]; + } -return returnValue; + return returnValue; } @@ -40,11 +40,22 @@ void printPascalString(PascalString s) { } } -int intToDual(int n) { +PascalString intToDual(int n) { + int i = std::to_string(n).length() * 4; + PascalString string = {i}; + while(n >= 1) { + string.characters[i] = (n % 2) + '0'; + n = n / 2; + i--; + } + + + return string; } int main(int argc, char** argv, char** envp) { + PascalString s = {3, '1', '0', '0'}; PascalString s2 = {4, 'f', 'f', 'f', 'f'}; println(hexStringToInt(s)); @@ -64,6 +75,8 @@ int main(int argc, char** argv, char** envp) { println(controlRegister); + printPascalString(intToDual(41)); + return 0; } diff --git a/02_MENT/println.out b/02_MENT/println.out index b1bbd0ffc45490b355d083edbb77966c5cb7e57f..8c522bc21ed0873ac764852ccba9f3675305d41f 100755 GIT binary patch delta 26 hcmew`kMYAi#tjmN+(xEG#)byQ26|>Do0ScH2g?8e