Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xem committed Jan 1, 2017
1 parent 5987160 commit 7b6f4c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TLDR.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ All registers are initialized to 0 except:
- SI = 0100
- DI = FFFE
- SP = FFFE
- DX, DS, ES, SS = CS (due to the .COM file) = 0100 (right?)

NB: In a .COM file, DX = DS = ES = SS = CS = 0000. The entry point is at CS:0100.

### Flags

Expand Down
4 changes: 1 addition & 3 deletions src/demos.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ ret ; quit program`;
// TUNNEL
tunnel.onclick = e => {
u = [104,186,159,12,19,7,205,16,42,52,96,223,71,247,223,71,248,217,243,221,209,217,255,218,12,222,119,248,222,2,219,95,249,222,76,61,223,95,251,97,48,200,36,26,170,184,205,204,247,231,112,212,131,2,23,228,96,72,117,204,195,119,25];
original.innerHTML = `<pre>
org 100h ; we start at CS:100h
push 0xa000 - 10 - 3 * 20 ; video base - 3.5 lines
original.innerHTML = `<pre>push 0xa000 - 10 - 3 * 20 ; video base - 3.5 lines
or al, 0x13 ; mode 13h = 320 x 200 in 256 colors
pop es ; get aligned video memory base
int 0x10 ; switch videomode
Expand Down

0 comments on commit 7b6f4c8

Please sign in to comment.