Giter Club home page Giter Club logo

8080cpuemulator_systemcallsandthreads's Introduction

// / Gozde DOGAN - 131044019 / CSE312 - Homework2 / / 20 Nisan 2018 / / Kisa odev aciklamasi / /*******/

Thread class'i yazildigi icin makefile'i ona gore duzenledim, o sekilde atiyorum. Benim gonderdigim makefile'i calistirmak isteiyorsaniz elinizdeki makefile'da; DEPS = Thread.h gtuos.h memory.h 8080emuCPP.h memoryBase.h Thread.cpp gtuos.cpp 8080emu.cpp seklinde duzeltme yapabilirsiniz.

ONEMLI: make yapildiginde memory.h da cstdlib kutuphanesi tanimlanmadigi icin malloc kullanimina hata veriyor. Bu nedenle memory.h ve MemoryBase.h kutuphaneleri de dosyanin icinde gonderildi. Eger bu sekilde calistirmak istemiyorsaniz elinizdeki memory.h kutuphanesine #include seklinde C'nin standart kutuphanesini eklemelisiniz. Bu sekilde duzeltme yaptiginizda calisacaktir.

F1.asm, F2.asm, F3.asm, F4.asm, F5.asm, P1.asm, P2.asm, P3.asm, P4.asm, P5.asm yazildi.

F1.asm -> Sayilari 0 dan baslayip 50 ye kadar yaziyor. (50 dahil) PRINT_B kullanildi (510 cycle surecektir.)

F2.asm -> 1'den 100'e kadar sayilari toplayip ekrana yaziyor. Sadece PRINT_B kullanildi. (10 cycle surecektir.)

F3.asm -> 50'den 100' kadar olan sayilari (100 dahil) ekrana yaziyor. PRINT_B kullanildi. (510 cycle surecektir.)

F4.asm -> dw ile tanimlanan arrayi siralamaya calisiyor. Array elemanlari random olarak uretildi. Siralanmis arrayi PRINT_STR ile ekrana yaziyor. (Sort islemi 1250 cycle surecektir.)

F5.asm -> 50 random sayi uretilir ve ardindan siralanir. Klavyeden okunan sayi Search algoritmasi ile bu dizi de aranir. Eleman bulunursa index'i, bulunamazsa hata mesaji ekrana yazilir. (NOT: index yazilirken index'in 2 kati seklinde yaziliyor) (Cycle sayisi eleman bulundugu zaman 1480 cikacaktir. Bulunmadigi zaman ise 1470 cikacaktir.)

P1.asm, P2.asm, P3.asm, P4.asm, P5.asm istenilenlere uymaya calisarak implement etmeye calistim. Iclerinde thread system call'llari kullanildigi icin cycle sayilari da ona gore cikacaktir.

ASM dosyalari bir folder icinde bulunmaktadir. !! Ama .com uzantili dosyalar programlarin bulundugu klasor de yer almalidir !!

Odev denenmesi istenilen linux surumunde segment fault yememiştir. Butun asm dosyalari calistirilip denendi. Hepsi sonlandi.

8080cpuemulator_systemcallsandthreads's People

Contributors

gozdedogan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.