Posts Tagged ‘source code’

PHP: Dynamic inclusion tutorial

Sunday, September 13th, 2009

I’m posting this because I thought that it might help some people who want to structurize their website in a way that they can easily edit pages which contain contents and pages which contain the code of the layout, as we separate layout code from contents in dynamic inclusion.

This is for PHP beginners, but I assume that you have basic knowledge about PHP variables and form submission methods if you would read this tutorial.
(more…)

Assembly Language: a simple shop/store program

Sunday, September 13th, 2009

A small program I made a year ago in Turbo Assembler.

tasm shop assembly language

It’s a shop displaying four items, each item having 9 stocks. The user is first prompted for which item he/she wishes to buy, for the quantity of the purchase, and if he wants to buy again. The program closes once the shop runs out of stock.

(more…)

Assembly Language: check if a one-digit input number is odd or even

Thursday, August 27th, 2009

assembly programming odd even number

I coded this back when I was taking up Computer System Organization. It was a homework that I decided to share in my old blog.

The program accepts a one-digit number as the input, and then shows whether that number is ODD or EVEN.

The program uses the attribute byte to highlight ODD or EVEN with a color.
(more…)