Archive

Archive for the ‘Research’ Category

Assembly Tutorials

December 6th, 2008 1 comment

Here is myprojects during the course microprocessors.  Hope it will help you guys. Here you are can find following programs.

  • Data and Time Showing
  • Controlling DC Motor from/using parallel port
  • Controlling Stepper Motor from/using parallel port

#1 – Data and Time Showing

;—————————————–
;— TERM PROJECT                      —
;— LECTURE: MICROPROCESSORS          —
;— LECTURER: HOSSEIN MEHRABANI       —
;— CODED BY: SAMET KILICTAS          —
;— STUDENT NUMBER: 20040283          —
;— E-MAIL: SAMET@KILICTAS.COM        —
;— CYPRUS INTERNATIONAL UNIVERSITY   —
;— 26-05-2008                        —
;—————————————–
;THE REQUIRED MACROS FOR PROGRAM—————————
;———————————————————-
CURS_POSITION     MACRO ROW,COLUMN
MOV BH,00
MOV AH,02
MOV DH,ROW
MOV DL,COLUMN
INT 10H
ENDM
;———————————————————-
CLS_SCREEN MACRO
MOV AX,0600H
mov bh,00
mov bh,0ah
MOV CX,0
MOV DX,184FH
INT 10H
ENDM
;———————————————————-
SHOW_INSCREEN MACRO STRING
MOV AH,09
MOV DX,OFFSET STRING

Read more…

VN:F [1.9.22_1171]
Rating: 5.5/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Coding Guidelines For Developers

August 24th, 2008 No comments

@author andrej arn
@author sam blume
@version 4.6 updated 2005-11-24

Basically…
we’d like to have a clean and professional, bug-free code.
Most people have different coding styles. And most think that
“the other style” is ugly. We don’t want to force you changing
your style. Here is how we do it and like it:

o) We use capital letters for constants. e.g. define(‘CONSTANT’, 1).
We also use the capital form of TRUE, FALSE and NULL.
This is true for PHP, note that javascript needs lowercase.

o) If a function is described to return bool, expect to get a real bool
(TRUE/FALSE) and not an int (0/1). So please code your functions and
methods that way.

o) Don’t trust the return values from php methods. If they are stated
to return bool, they often return an int (0/1). So don’t directly
return that from your functions, convert to (bool) if necessary.

o) Never ever use echo, print and die and the like inside your methods.
Use return.

o) this applies also for white spaces. if you start your file with anything
(an empty line) before the   considered as output. This makes header() calls impossible (cookie,
session). The same applies for white spaces after the ?> tag. take care!
Even a newline is too much. This is a typical php newbie mistake.

o) Everything should be as os independant as possible. Including windows.

o) Make your code work with PHP version 4.3.0+ and 5.0.5+.
Don’t support php3.

o) Make the php exam. Repeat it from time to time.

http://www.blueshoes.org/en/developer/syntax_exam/

Read more…

VN:F [1.9.22_1171]
Rating: 9.2/10 (5 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Categories: General, Research Tags: , , ,

Assembly (x86) Turbo Lecture Notes

June 16th, 2008 2 comments

Here is my microprocessors lecture notes. Also you can have information about assembly programming with TASM. All the 20 lectures are available.

Lecture 1

  1. Microcomputers and Microprocessors
  2. Evolution of Intel 80×86 Family Microprocessors
  3. Binary and Hexadecimal Number Systems

Lecture 2

  1. Brief History of 80×86 Family of Microprocessors
  2. Pipelining and Registers
  3. Introduction to Assembly Programming

Lecture 3

  1. Introduction to Assembly Programming (cont. from Lecture 2)
  2. Introduction to Program Segments

Lecture 4

  1. Memory Map of the IBM PC
  2. Pushing and Popping Operations (Stack)
  3. Flag Registers and bit fields

Lecture 5

  1. Flag Registers and bit fields
  2. 80×86 addressing modes.

Lecture 6

  1. Directives and sample programs
  2. Assemble, link and run a program

Lecture 7

  1. Control transfer instructions
  2. CALL statement
  3. Subroutines
  4. Data Types and Data Definition

Lecture 8

  1. Arithmetic and Logic Instructions and Programs
  2. Unsigned Addition and Subtraction

Lecture 9

  1. Unsigned Subtraction
  2. Unsigned Multiplication and Division
  3. Arithmetic and Logic Instructions and Programs

Read more…

VN:F [1.9.22_1171]
Rating: 10.0/10 (4 votes cast)
VN:F [1.9.22_1171]
Rating: +2 (from 2 votes)

TDFSB 3D File Browser

June 15th, 2008 1 comment

Here is a new nice project i’ve just heard about TDFSB…. Which reads directory information and displays it as a 3D world. cd’ing into another directory is possible by simply walking into the assigned sphere. It also reads images and text files and displays their contents. It plays MP3 files and MPEG-1 videos as 3D objects.

Shortly, it is a 3D world inside your pc. This is really nice and interesting tool for your boring pc. Just imagine.. you can fly between your files.. your documents.. even your pictures..

This project came to me with really nice ideas. I am glad to talk about TDFSB because it has been coded 6 years ago. A developer [Leander Seige - i hope this is true] coded this tools with simple code in first time. But now just take a look at it. He and some other developers are came with new ideas.

I have run this tool with my system which is Ubuntu Hardy 8.04 and of course to run TDFSB nicely, you gonna need a hardware accelerated 3d graphic card. While walking arround your documents you can also listen mp3s or you can watch some of your video files.

Read more…

VN:F [1.9.22_1171]
Rating: 6.0/10 (3 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Categories: General, Linux, Research Tags: , , , , ,

Compiz Fusion ‘a Extra eklenti kurulumu (Gusty 7.10)

April 28th, 2008 5 comments

Önemli! : Burda anlattığım kurulum aşamaları Ubuntu 8.04 Hardy Heron distrosundaki default compiz veya compiz versionu 0.6.* dan büyük olanlar tafarından uygulanmamalıdır.

İlk önce şunu söylemek yerinde olur diye düşünüyorum. Burada anlatacağım kurulum aşamaları vs. home user diye tabir ettiğimiz kullanıcılar tarafından karışık olarak görülebilir. Lütfen şu anda ne ile uğraştığınızı bilmiyorsanız, ve buna rağmen Compiz kurulumunu yapmak istiyorsanız bu işlemleri uygulamanızı tavsiye etmeyiniz.

Ubuntu Gusty 7.10

Bu işlemleri uygulamanız için şunlara sahip olduğunuzu varsayıyorum;

  • Yeni kurulmuş bir Gusty
  • Halen sisteminize Gusty kurulumu ile gelen default compiz paketlerinin çalışıyor şekilde olması (0.6.*)
  • Ve kurulum sırasında root yetkisinde değil kullanıcı seviyesinde olduğunuz

    Not: Compiz-Fusion kurulumuna başlamadan önce sisteminizde ki ekran kartlarının bu listedekilerden biri olmasına ve sisteminizde çalışıyor halde olmasına dikkat edin!

    Kurulumunu yapacağımız eklentiler : 3D Windows, Atlantis2, Snow, Stars, Atlantis, Screensaver, Anaglyph, Wallpaper, Tile, Freewins, Fireflies, Photowheel ve Snowglobe. Bunlara ek olarakta Mouse position polling, Magnifier ve Show mouse eklentilerinin kurulumunuda bulabileceksiniz.

    Compiz Eklenti Bağımlılıklarının Kurulumu

    Öncelikle aşağıdaki komutu konsol(terminal) e yazarak gerekli bağımlılıkları sistemimize kurmalıyız. Çünkü compiz eklentilerini derlerken ve yüklerken bunlara ihtiyacımız olucak.

    sudo apt-get install compiz-bcop compiz-dev build-essential libxcomposite-dev libpng12-dev libsm-dev libxrandr-dev libxdamage-dev libxinerama-dev libstartup-notification0-dev libgconf2-dev librsvg2-dev libdbus-1-dev libdbus-glib-1-dev libgnome-desktop-dev x11proto-scrnsaver-dev libxss-dev libxslt1-dev libtool

    Eklentilerin İndirilmesi

    Şimdi /home/samet/  altında compiz eklentilerini açacağımız bir klasör oluşturuyoruz.

    mkdir -p ~/compiz/

    Sıradaki işlemimiz ise eklentileri bilgisayarımıza indirmek.Aşağıdaki kod dizisini terminal’ e tamamen

    Read more…

    VN:F [1.9.22_1171]
    Rating: 0.0/10 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)