MUAP™ Terdepan Dalam Urusan Bisnis Dunia Dan Akhirat

http://compteur.cc/

Minggu, 11 Mei 2014

Base convertion, converting between different bases (My Project Orkom)

muapsein.blogspot.com

TITLE PROG2.asm                        ;File name of program

LF equ 0ah                             ;ASCII 10 - newline character
CR equ 0dh                             ;ASCII 13 - carriage return character
NEWLINE equ CR,LF                      ;Combine CR and LF for carriage return
DOUBLESPC equ NEWLINE,LF               ;Combine NEWLINE and LF for double space
MAXSTR equ 256d                        ;Accept up to 256 character string

.586                                   ;Allow for Pentium instrucitons
.MODEL FLAT                            ;Memory model is FLAT (4GB)
INCLUDE io32.inc                       ;Include the 32 bit I/O procedures
.STACK  4096h                          ;4k hex bytes for stack
.DATA                                  ;Data segment begins here
  Intro      BYTE  NEWLINE,'WELCOME!',NEWLINE,\
                   'This program allows any user to enter ',\
                   'a binary, decimal, or hexadecimal number. The program ',\
                   'will then convert that number to the other two formats ',\
                   'and ',NEWLINE,\
                   'display the results on the screen.',DOUBLESPC,0
  Error1     BYTE  DOUBLESPC,'Error: Invalid input.',\
                   ' Please try again.',DOUBLESPC,0
  Error2     BYTE  DOUBLESPC,'Error: Input too large.',\
                   ' Please try again.',DOUBLESPC,0
  Menu       BYTE  NEWLINE,' 1) Enter a Binary Number',\
                   NEWLINE,' 2) Enter a Decimal Number',\
                   NEWLINE,' 3) Enter a Hexadecimal Number',\
                   NEWLINE,' 4) Quit',NEWLINE,NEWLINE,0
  Prompt     BYTE  NEWLINE,'Enter your choice --> ',0
  BPrompt    BYTE  NEWLINE,NEWLINE,'Enter a binary number ',\
                   '(less than 33 digits) --> ',0
  DPrompt    BYTE  NEWLINE,NEWLINE,'Enter a decimal number ',\
                   '(less than 4294967295d) --> ',0
  HPrompt    BYTE  NEWLINE,NEWLINE,'Enter a hexadecimal number ',\
                   '(less than 0FFFFFFFFh) --> ',0
  TempChar   BYTE  ?                    ;Temporary character storage
  BinVal     DWORD ?                    ;Will hold final Binary Value
  DecVal     DWORD ?                    ;Will hold final Decimal Value
  HexVal     DWORD ?                    ;Will hold final Hex Value
  String     BYTE  MAXSTR dup(?)        ;Holds max sring size
  TempString BYTE  MAXSTR DUP(0)        ;Temporary string storage
  TempInt    DWORD 0h                   ;Temporary integer storage
  KeyPress   BYTE  ?                    ;Temporary storage
  TempNum    DWORD ?                    ;Temporary number storage
  Number     DWORD 0h                   ;Holds number value

;************************** Main Body of Program *****************************
; Given  : Nothing
; Process: Main Body - calls procedures to do the processing
; Return : Nothing
;*****************************************************************************
.CODE                                    ;executable section begins here
_main:
       lea  esi,Intro                   ;point to intro string in data
       call PrintString                 ;display the string
Repeat1:lea  esi,Menu                    ;point to menu string in data
       call PrintString                 ;display the string
       lea  esi,Prompt                  ;point to prompt message
       call PrintString                 ;display the string
       lea  esi,tempNum                 ;point to storage for keypressed
       call GetChar                     ;  and get the char
Check1: cmp  tempNum,'1'                 ;Test if 1 was typed
       jne  Check2                      ;  no, check for 2
       call Binary                      ;If number equals 1 go to binary
       jmp  Repeat1                     ;go to menu
Check2: cmp  tempNum,'2'                 ;Test if 2 was typed
       jne  Check3                      ;  no, check for 3
       call Decimal                     ;If number equals 2 go to Decimal
       jmp  Repeat1                     ;go to menu
Check3: cmp  tempNum,'3'                 ;Test if 3 was typed
       jne  Check4                      ;  no, check for 4
       call Hexadecimal                 ;If number equals 3 go to hexadecimal
       jmp  Repeat1                     ;go to menu
Check4: cmp  tempNum,'4'                 ;Test if 4 was typed
       je   EndProgram                  ;  yes, end the program
       call MenuError                   ;go to error message for other inputs
Binary: lea  esi,BPrompt                 ;point to bprompt message
       call PrintString                 ;display the string
       call GetNum                      ;Get user binary number
;        call ConvertB                    ;call convertb for decimal and hex
       call Repeat1                     ;Go to Menu options
Decimal:lea  esi,DPrompt                 ;point to dprompt message
       call PrintString                 ;display the string
       call GetNum                      ;Get user decimal number
;        call ConvertD                    ;call convertd for binary and hex
       call Repeat1                     ;Go to Menu options
Hexadecimal:
       lea  esi,HPrompt                 ;point to hprompt
       call PrintString                 ;display the string
       call GetNum                      ;Get user Hex number
;        call ConvertH                    ;call converth for binary and decimal
       call Repeat1                     ;Go to Menu options
MenuError:
       lea  esi,Error1                  ;point to error1 message
       call PrintString                 ;display the string
       call Repeat1                     ;loops back to start of program
EndProgram:
       INVOKE  ExitProcess,0            ;Exit program with return code 0

;**************** Procedure to ??????????????????????????? ********************
; Given   :
; Process :
;         :
; Return  :
;******************************************************************************
MyProc PROC NEAR32
       pushad                         ;Save the contents of all registers
       pushfd                         ;

       popfd                          ;Restore the registers
       popad                          ;
       ret                            ;Return to Calling procedure
MyProc ENDP

;******************* Near procedure to print a string *************************
; This procedure uses a  WHILE... loop to print a string of characters
; Given   :  The Address of the String to print on the STACK
; Process :  Print the String by repeated calls to PrintChar procedure
; Return  :  Nothing
;******************************************************************************
MyPrintString PROC NEAR32              ;Define a NEAR32 procedure
       pop eax                        ;Get RETURN address from Stack
       pop ebx                        ;Get STRING address from Stack
       push eax                       ;Put RETURN address back on Stack
While1: mov dl,[ebx]                   ;Contents of address pointed to by EBX
       mov TempChar,dl                ;Move the character to temporary store
       cmp TempChar,0                 ;While not end of the string
       je StringEnd                   ;  Jump to StringEnd on char = 0 (null)
       lea esi,TempChar               ;Address of character to print
       call PutChar                   ;Go print a character
       inc ebx                        ;Increment pointer to next character
       jmp While1                     ;Go to top of the loop
StringEnd:ret                          ;Return to calling procedure
MyPrintString ENDP                     ;Formal end of procedure

;********************** Procedure to Input the Number *************************
; Given   :  Nothing
; Process :  Accept a string of ASCII digits and convert them to an integer
; Return  :  Return the integer in EAX register
;******************************************************************************
GetNum PROC NEAR32                      ;Define a NEAR32 procedure
       push ebx                        ;Save the contents of all registers
       push ecx                        ;  except for EAX, which will contain
       push edx                        ;  the integer number that was read
       lea esi,TempString              ;Pointer to temporary string
       call GetString                  ;  go get the string
       lea esi,TempString              ;Pointer to temporary string
       lea edi,TempInt                 ;Pointer to integer storage
       call Ascii2Int                  ;Convert the string to integer
       mov eax,TempInt                 ;Copy the integer to EAX
       pop edx                         ;Restore the registers in reverse order
       pop ecx                         ;
       pop ebx                         ;
       ret                             ;Return to Calling procedure
GetNum ENDP                             ;Formal end of procedure

Public _main
END                                    ;Code segment ends

TAG : 
#Projec 
#Assembly
#8086Emulator
#Organisasi Komputer
# Contoh Projek Organisasi Komputer
# Contoh Projek Orkom

Kamis, 20 Februari 2014

Datasheet IC LM741 indonesia

muapsein.blogspot.com
Penguat operasional (Op-Amp) adalah suatu blok penguat yang mempunyai dua masukan dan satu keluaran. Penguat operasional (Op-Amp) dikemas dalam suatu  rangkaian terpadu (integrated circuit-IC). Salah satu tipe operasional amplifier (Op-Amp) yang populer adalah LM741. IC LM741 merupakan operasional amplifier yang dikemas dalam bentuk dual in-line package (DIP). Kemasan IC jenis DIP memiliki tanda bulatan atau strip pada salah satu sudutnya untuk menandai arah pin atau kaki nomor 1 dari IC tersebut. Penomoran IC dalam kemasan DIP adalah berlawanan arah jarum jam dimulai dari pin yang terletak paling dekat dengan tanda bulat atau strip pada kemasan DIP tersebut. IC LM741 memiliki kemasan DIP 8 pin seperti terlihat pada gambar berikut.

Konfigurasi Pin IC Op-Amp 741




Pada IC ini terdapat dua pin input, dua pin power supply, satu pin output, satu pin NC (No Connection), dan dua pin offset null. Pin offset null memungkinkan kita untuk melakukan sedikit pengaturan terhadap arus internal di dalam IC untuk memaksa tegangan output menjadi nol ketika kedua input bernilai nol. IC LM741 berisi satu buah Op-Amp, terdapat banyak tipe IC lain yang memiliki dua atau lebih Op-Amp dalam suatu kemasan DIP. IC Op-Amp memiliki karakteristik yang sangat mirip dengan konsep Op-Amp ideal pada analisis rangkaian. Pada kenyataannya IC Op-Amp terdapat batasan-batasan penting yang perlu diperhatikan. Pertama, tegangan maksimum power supply tidak boleh melebihi rating maksimum, karena akan merusak IC. Kedua, tegangan output dari IC op amp biasanya satu atau dua volt lebih kecil dari tegangan power supply. Sebagai contoh, tegangan swing output dari suatu op amp dengan tegangan supply 15 V adalah ±13V. Ketiga, arus output dari sebagian besar op amp memiliki batas pada 30mA, yang berarti bahwa resistansi beban yang ditambahkan pada output op amp harus cukup besar sehingga pada tegangan output maksimum, arus output yang mengalir tidak melebihi batas arus maksimum. Pada sebuah peguat operasional (Op-Amp) dikenal beberapa istilah yang sering dijumpai, diantaranya adalah : Tegangan ofset masukan (input offset voltage) Vio menyatakan  seberapa jauh v+ dan v terpisah untuk mendapatkan keluaran 0 volt. Arus offset masukan (input offset current) menyatakan kemungkinan seberapa berbeda kedua arus masukan. Arus panjar masukan (input bias current) memberi ukuran besarnya arus basis (masukan). Harga CMRR menjamin bahwa output hanya tergantung pada (v+) – (v-), walaupun v+ dan v- masing-masing berharga cukup tinggi. Untuk menghindari keluaran yang berosilasi, maka frekuensi harus dibatasi, unity gain frequency memberi gambaran dari data tanggapan frekuensi. hal ini hanya berlaku untuk isyarat yang kecil saja karena untuk isyarat yang besar penguat mempunyai keterbatasan sehingga output maksimum hanya dihasilkan pada frekuensi yang relative rendah.

Kata Kunci pencarian : datasheet lm741 indonesia ; datasheet lm741 ; datasheet lm741 make bahasa indonesia ; datasheet lm741 pakai bahasa  indonesia ; Definisi IC lm741 ; datasheet lm741 menggunakan bahasa indonesia

Rabu, 19 Februari 2014

Gerbang Logika

muapsein.blogspot.com
Gerbang logika adalah piranti dua keadaan, yaitu mempunyai keluaran dua keadaan: keluaran dengan nol volt yang menyatakan logika 0 (atau rendah) dan keluaran dengan tegangan tetap yang menyatakan logika 1 (atau tinggi). Gerbang logika dapat mempunyai beberapa masukan yang masing-masing mempunyai salah satu dari dua keadaan logika, yaitu 0 atau 1. Gerbang logika dapat digunakan untuk melakukan fungsi-fungsi khusus, misalnya AND, OR, NAND, NOR, NOT atau EX-OR (XOR).




A. Gerbang AND Dan NAND
Gerbang AND digunakan untuk menghasilkan logika 1 jika semua masukan mempunyai logika 1, jika tidak akan dihasilkan logika 0. Daftar yang berisi kombinasi semua kemungkinan keadaan masukan dan keluaran yang dihasilkan disebut sebagai Tabel kebenaran dair gerbang yang bersangkutan. Gerbang NAND akan mempunyai keluaran 0 bila semua masukan pada logika 1. Sebaliknya, jika sbeuah logika 0 pada sembarang masukan pada gerbang NAND, maka keluarannya akan bernilai 1.  Kata NAND merupakan kependekan dari NOT-AND, yang merupakan ingkaran gerbang AND. Simbol AND dan NAND





B. Gerbang OR Dan NOR Gerbang OR akan memberikan keluaran 1 jika salah satu dari masukannya pada keadaan 1. Jika diinginkan keluaran bernilai 0, maka semua masukan harus dalam keadaan 0 . Gerbang NOR akan memberikan keluaran 0 jika salah satu dari masukkannya pada keadaan 1. Jika diinginkan keluaran bernilai 1, maka semua masukan harus dalam keadaan 0. Kata NOR merupakan kependekan dari NOT-OR, yang merupakan ingkaran dari gerbang OR.


C. Gerbang NOT
Gerbang NOT merupakan gerbang satu-masukan yang berfungsi sebagai pembalik (inverter). Jika masukannya tinggi, maka keluarannya rendah, dan sebaliknya. Tabel kebenaran dari gerbang NOT tersaji pada tabel dibawah. 

D. Gerbang XOR Gerbang XOR (dari kata exclusive-or) akan memberikan keluaran 1 jika masukan-masukannya mempunyai keadaan yang berbeda.  Dari Tabel tersebut dapat dilihat bahwa keluaran pada gerbang XOR merupakan penjumlahan biner dari masukannya. Berikut tadi sedikit gambaran tentang gerbang logika pada elektronika digital. Gerbang -gerbang logika dasar digital tersebut diatas merupakankomponen dasar yang penting dan digunakan untukmembangu sistem digital yang.


Hastag : Gerbang Logika, Gerbang And , Gerbang OR , Gerbang Not, dan pengembangan gerbang lainya pada elektronika

Minggu, 02 Februari 2014

Easily Customize Your Sony Xperia Z’s Launcher and Lock Screen with Xposed

muapsein.blogspot.com Up until now, customizing an Xperia launcher and lock screen has been quite the hassle, usually consisting of decompiling an APK, making your edits, and recompiling it. So if you wanted an extra row or column of icons on your home screen, you had to flashthis, if you wanted fading home screen indicators, you had to flash this, and if you wanted to get rid of the app dock, you had to flash this, and so on. For every little change you wanted, there was an individual mod that you had to flash, and this can definitely become burdensome if you wished for a lot of changes.
This is probably why XDA Forum Member greg2001developed an Xposed module to apply such aesthetic changes to the launcher and lock screen of the Sony Xperia Z. With it, one no longer has to create, find, and flash a plethora of incremental modifications to make their launcher and lock screen their own. Rather, XDA Recognized Developer rovo89‘s Xposed framework does all the work for you.
The full list of tweaks to the launcher and lock screen are as follows:
  • Launcher tweaks
    • Condensed font
    • Transparent status/navigation bars
    • Desktop grid size
    • Multi-line labels on desktop
    • Auto-hide page indicator on desktop
    • Folder columns
    • Multi-line labels in folders
    • Disable launcher background dimming when opening a folder
    • Dock columns
    • Hide dock stage
    • Hide dock reflections
    • Large dock reflections
    • Transparent drawer
    • Drawer grid size
    • Hide drawer backplate
  • Lock Screen tweaks
    • Transparent status bar
    • Enable the standard AOSP lockscreen with live wallpaper support, customizable via GravityBox
    • Hide shortcut icons
    • Hide unlock hint arrows
    • Custom/hidden unlock hint text
    • Custom/hidden carrier label
    • Small blinds
And because this is an Xposed mod, reverting back to previous settings is as simple as few taps and swipes, much more convenient than previously. It must be noted that the module will only work with an Xperia Z running the official Android 4.3 firmware.
If you would like to check this out, head over to the original thread for more information.

Get the Sony UI in Non-Sony Apps on Sony Xperia Devices

muapsein.blogspot.com Now that Google’s Holo theme has been around for quite a while now, it’s probably safe to say that a very large portion of apps, if not the majority, have adopted the Holo look. But as OEMs are, they like to keep things their way, and this is no different when it comes to Sony. But unlike some OEMs and their preferred interfaces, the aesthetic route Sony has taken doesn’t stray too much from Holo. This may have resulted many folks taking a liking for Sony’s UI, leading to XDA Recognized Themer BDFreak creating an interesting framework for the Sony Xperia Z1, Z,ZL, SP, T, TX and V.
As Xperia owners would know, the Sony UI can only be seen on apps made by Sony, such as the messaging app, Walkman, and the calendar. What this framework does however, is force the Sony UI to replace the UI of any non-Sony app, making the Sony look consistent throughout your phone. No matter which app you have installed, and what sort of theme they have, be it Holo or something made in MS Paint, the framework replaces every UI element with those of Sony.
If you’re unsure or wary of how this might turn out, BDFreak has provided some side-by-side comparisons of apps’ interfaces before and after installation of the framework to help you decide before diving in. Installation is very simple, merely consisting of downloading the appropriate zip file and flashing it through a custom recovery. There are also convenient zip files which revert everything back to they way they were before if you don’t like what you see.
If you would like to check this framework out, head over to the original threads for the supported devices.

Apply Custom Themes on a Whim with Xposed Module

muapsein.blogspot.com With all the various types of theme formats and the plethora of custom themes available for Android users today, there has to be a way to view, organize, and apply themes you have installed in one simple and hassle-free interface. And while you’re at it, why not throw in there some pretty extensive customization options?
Well, XDA Forum Member hdbk1986 developed a module for the Xposed framework called HKThemeManager, allowing you do all the aforementioned things with the convenience and flexibility of an Xposed module. With support for CM themes, Xthemes, and HKthemes, HKThemeManager searches and shows all themes installed on your device for your to browse through and choose from.
HKThemeManager gives you the flexibility to select certain specific visual elements of the user interface (such as certain apps) that you want the theme to apply to, while leaving everything else as they are. In addition, you can also set multiple themes on your device, with only the overlapping visual elements of the selected themes replaced by the most recent theme you’ve applied.
HKThemeManager can be downloaded from either the original post or the Xposed module repository. So if you are interested in an all-in-one theme manager, visit the original thread for more information.

Give Your Sony Xperia Device a Makeover with Serajr Xperia Xposed Mod

muapsein.blogspot.com - When it comes to Xposed modules focused on UI customization, there are some great choices out there. But because many of them are designed to have maximum compatibility with a wide range of different devices, naturally the amount of customization that is allowed will be restricted. So when an Xposed module developed specifically for one type of device, namely Xperia devices, one can expect greater customization options.
And this is exactly the case with Serajr Xperia, developed by XDA Recognized Themer serajr. This is an Xposed module developed only for Xperia devices running the official Android 4.2.2+ firmware (with a few exceptions). Its great range of customization options are organized into 5 main categories: System, System UI, Power Menu, Xperia Home, and Media. In total, there are a 44 options as of right now, including:
  • Desktop panes with infinite scrooling
  • Create unlimited desktop panes
  • Static desktop wallpaper
  • Multiline desktop icons labels
  • Auto hide desktop pagination markersApp Drawer panes with infinite scrooling
  • Hide App Drawer background plate
  • Auto close App Drawer after start application
  • Choose Dock shortcuts number without dpi decrease
The device compatibility list includes most Xperia devices that have had their Android 4.2 and 4.3 update already such as the Xperia Z1Z, and L, as well as a few devices which have only Android 4.1 such as the Xperia S and ION.
If you want to check out the Xposed module yourself, visit the original thread for more information.