This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[BITS 16] ; 16 bit code generation | |
[ORG 0x7C00] ; ORGin location is 7C00 | |
JMP short main ; Jump past disk description section | |
NOP ; Pad out before disk description | |
; ------------------------------------------------------------------ | |
; Disk description table, to make it a valid floppy | |
; Note: some of these values are hard-coded in the source! | |
; Values are those used by IBM for 1.44 MB, 3.5" diskette |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 100h | |
main: | |
call set_video_mode | |
.main_loop: | |
call get_mouse_input | |
call draw_top_bar | |
call get_keyboard_input | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldr r0,=#0x4000006 @ VBlank memory address | |
waitVBlank: | |
ldrh r1, [r0] @ Loads the memory address to the r1 register | |
cmp r1, #161 @ Compare if the memory address have completed the VBlank | |
bne waitVBlank @ Loopback until r1 != 161 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Access AddressBook file and use it as a database | |
# Variables | |
name=$1 | |
number=$2 | |
db=AddressBook | |
### AddressBook File Example ### | |
# Maria Daher (27)5564-4392 # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
####################################################### | |
# TIC TAC TOE # | |
# I WON'T GIVE YOU A CHANCE. YOU'LL NEVER WIN! # | |
####################################################### | |
# This program was developed as a funny way to test # | |
# the compatibility between arrays in ksh and bash. # | |
# Feel free for develop the module that the opponent # | |
# start playing, but don't forget to send me the new # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Hello world in Assembler for the Win32 architecture | |
TITLE Hello world in win32. Tasm | |
VERSION T310 | |
Model use32 Flat,StdCall | |
start_code segment byte public 'code' use32 | |
begin: | |
Call MessageBox, 0, offset sHallo, offset caption, 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; How to call it from the program | |
main: | |
call getinput | |
mov si, buffer | |
cmp byte[si], 0 ; Blank line | |
je main ; Ignore it | |
mov si, buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package contacts; | |
import java.io.*; | |
import java.util.Vector; | |
import javax.microedition.midlet.MIDlet; | |
import javax.microedition.midlet.MIDletStateChangeException; | |
import javax.microedition.rms.*; | |
import javax.microedition.lcdui.*; | |
public class simplecontacts extends MIDlet implements CommandListener { | |
private Display display; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ******************** | |
; * DIVIDE.ASM * | |
; ******************** | |
.model small | |
.stack 512d | |
.data | |
a dw -9d | |
b db 2d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#make_COM# | |
; COM file is loaded at CS:0100h | |
org 10h | |
; ******************************** | |
; * Program: ASCIICONV.ASM * | |
; ******************************** | |
include 'emu8086.inc' |
OlderNewer