Thursday, September 17, 2015

Assembly Sample Programs (emu8086)

The following examples must be used for educational purposes only. 
Don't just download the codes, learn how they work.

#1) Produce a Short Beep Sound

You can use a loop to create a succession of beep sounds. The complete code to produce a single beep sound is right below.
 
org 100h
mov ah, 02
mov dl, 07h       ;07h is the value to produce the beep tone
int 21h                ;produce the sound
int 20h
ret



#2) Letters Only


The code is able to delete the character if it’s not a letter (a-z, A-Z). Its limitation: INPUT IS NOT BEING SAVED IN A BUFFER SO INPUT STRING IS NOT REUSABLE. I’m still figuring out how to do it.

#3) If num1>num2 show product else show sum

if first number is greater than second number display product
and if second number is greater than first number display sum
example:
Enter a first number: 4
Enter a second number:2
product : 8
***********************
 SCREENSHOTS



  
  





#4) Lowercase to Uppercase Converter 

      (Single Character only)











#5) Asterisk Loop
















#6) Zeroes aligned right















#7) Addition, Subtraction , Multiplication and Division (more than one digit , no decimals)









#8) Addition, Subtraction , Multiplication and Division (single digit input only)













#9) Diagonal Letters
























#10) Loop Sample 1



















#11) Loop Sample 2


















#12) Loop Sample 3


















#13) Loop Sample 4
















Monday, September 14, 2015

Tipid Move #2: Buying Shampoo in Sachets vs Bottled

I know moms and lots of Filipinoys there already know this buying tip but, let me post this for the people out there who don't believe yet just as I did before. 


One day, I woke up and suddenly realized I was not saving anything from my monthly salary. So one Sunday, while on a grocery store, I just found myself calculating and comparing the price of a shampoo brand in a big bottle to the price of combined sachets to get the same volume. I was surprised with the result. At first I could not believe it. I thought I was saving something by buying the one in bottle and I was not. I don't even know why no one told me about this before. Starting then, I no longer purchase shampoo in bottles. 

Below is a proof of that. This is based on my record last week.

A 180 ml Head & Shoulders (Cool Menthol) costs 114 point something. Okay, we'll make it Php 115.00. A pack of six 12 mL of the same brand is priced at Php 29.00. So a pack has (12 x 6 ) 72 mL. If you go with sachets, you can get 180 mL for PHP 72.50 ONLY.

  
  YOU SAVE PHP 42.50!

Tipid Move #1: Send SMS thru Chikka w/o Internet Connection

I'm sure most of you already know about this free service that Chikka has been providing for years to Filipinoys like me out there who would find ways to avail things at low or no cost. Chikka Text Messenger started as a PC application until they released a web version. Now, it has also conquered the smartphones and with its newest version, there's a new feature that allows one to send a 39-character SMS text even with no internet connection.Yes, without internet connection. Since I learned about it, I no longer need to reload when I have to send someone a text message. It saves me at least Php 20.00 a day! Yey! 

Here's how it works on my phone.



You may enjoy this so long as your phone supports sending USSD messages. Don't worry, most phones support this. Happy sending!

Please share in the comments section if you've got other ways of sending free SMS. It has to be legal guys.

Forerunner 225 - Quick Review

 The Garmin Forerunner 225 showing my step count for the day



This review is not to tackle the technical features this watch has to offer and does not offer. Instead, mentioned here are the things I like and don't like after using it on my runs for more than a month.

First, let me start with the things I like about this running watch.
  • Very comfortable on the wrist
  • Easy to operate with very nice buttons
  • Charges fast on my power bank and on my laptop
  • No problem when connecting to my smartphone via Bluetooth Smart
  • Display is readable even with the backlight off
  • No worries of getting it wet 
  • Connects GPS even on cloudy days
  • Constantly notifies me to move when idle

And just like anything in this world, there's always the other side. Fortunately, I only have one for this watch at the moment.
  • Its rubber strap easily collects white dusts as you can see from the photo above

I will be updating this post as I continue to use the watch. Thanks for reading!