Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
9520fb90
Commit
9520fb90
authored
Apr 20, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit more progress
parent
2419d4f9
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
1066 deletions
+48
-1066
TODO
src/TODO
+2
-0
id_vh_a.asm
src/id_vh_a.asm
+0
-110
misc.c
src/misc.c
+9
-3
misc.h
src/misc.h
+1
-0
wl_dr_a.asm
src/wl_dr_a.asm
+0
-739
wl_inter.c
src/wl_inter.c
+2
-4
wl_menu.c
src/wl_menu.c
+34
-210
No files found.
src/TODO
View file @
9520fb90
...
@@ -2,3 +2,5 @@
...
@@ -2,3 +2,5 @@
id_ca.c has code for setting the extension to load files
id_ca.c has code for setting the extension to load files
so does wl_menu.c
so does wl_menu.c
* would it not make sense to remove bufferseg from id_ca.c?
* would it not make sense to remove bufferseg from id_ca.c?
* menu code is a mess, always does things differently than the rest of the
code, it really needs to be cleaned up
src/id_vh_a.asm
deleted
100644 → 0
View file @
2419d4f9
; ID_VL.ASM
IDEAL
MODEL
MEDIUM
,
C
INCLUDE
'
ID_VL
.
EQU
'
SCREENSEG
=
0
a000h
UPDATEWIDE
=
20
UPDATEHIGH
=
13
DATASEG
EXTRN
bufferofs
:
WORD
EXTRN
displayofs
:
WORD
EXTRN
ylookup
:
WORD
EXTRN
linewidth
:
WORD
EXTRN
blockstarts
:
WORD
;offsets from drawofs for each update block
EXTRN
update
:
BYTE
CODESEG
;=================
;
; VH_UpdateScreen
;
;=================
PROC
VH_UpdateScreen
PUBLIC
VH_UpdateScreen
USES
si
,
di
mov
dx
,
SC_INDEX
mov
ax
,
SC_MAPMASK
+
15
*
256
out
dx
,
ax
mov
dx
,
GC_INDEX
mov
al
,
GC_MODE
out
dx
,
al
inc
dx
in
al
,
dx
and
al
,
252
or
al
,
1
out
dx
,
al
mov
bx
,
UPDATEWIDE
*
UPDATEHIGH
-
1
; bx is the tile number
mov
dx
,[linewidth]
;
; see if the tile needs to be copied
;
@@
checktile
:
test
[
update
+
bx
]
,
1
jnz
@@
copytile
@@
next
:
dec
bx
jns
@@
checktile
;
; done
;
mov
dx
,
GC_INDEX
+
1
in
al
,
dx
and
al
,
NOT
3
or
al
,
0
out
dx
,
al
ret
;
; copy a tile
;
@@
copytile
:
mov
[
update
+
bx
]
,
0
shl
bx
,
1
mov
si
,
[
blockstarts
+
bx
]
shr
bx
,
1
mov
di
,
si
add
si
,[bufferofs]
add
di
,[displayofs]
mov
ax
,
SCREENSEG
mov
ds
,
ax
REPT
16
mov
al
,[si]
mov
[di],
al
mov
al
,
[
si
+
1
]
mov
[
di
+
1
]
,
al
mov
al
,
[
si
+
2
]
mov
[
di
+
2
]
,
al
mov
al
,
[
si
+
3
]
mov
[
di
+
3
]
,
al
add
si
,
dx
add
di
,
dx
ENDM
mov
ax
,
ss
mov
ds
,
ax
jmp
@@
next
ENDP
END
src/misc.c
View file @
9520fb90
...
@@ -18,15 +18,21 @@ long filelength(int handle)
...
@@ -18,15 +18,21 @@ long filelength(int handle)
return
buf
.
st_size
;
return
buf
.
st_size
;
}
}
char
*
ltoa
(
long
value
,
char
*
string
,
int
radix
)
char
*
itoa
(
short
int
value
,
char
*
string
,
int
radix
)
{
{
/* wolf3d only uses radix 10 */
sprintf
(
string
,
"%d"
,
value
);
sprintf
(
string
,
"%d"
,
value
);
return
string
;
return
string
;
}
}
char
*
ltoa
(
long
value
,
char
*
string
,
int
radix
)
{
sprintf
(
string
,
"%ld"
,
value
);
return
string
;
}
char
*
ultoa
(
unsigned
long
value
,
char
*
string
,
int
radix
)
char
*
ultoa
(
unsigned
long
value
,
char
*
string
,
int
radix
)
{
{
sprintf
(
string
,
"%u"
,
value
);
sprintf
(
string
,
"%
l
u"
,
value
);
return
string
;
return
string
;
}
}
\ No newline at end of file
src/misc.h
View file @
9520fb90
...
@@ -6,6 +6,7 @@ extern char **_argv;
...
@@ -6,6 +6,7 @@ extern char **_argv;
long
filelength
(
int
handle
);
long
filelength
(
int
handle
);
char
*
itoa
(
short
int
value
,
char
*
string
,
int
radix
);
char
*
ltoa
(
long
value
,
char
*
string
,
int
radix
);
char
*
ltoa
(
long
value
,
char
*
string
,
int
radix
);
char
*
ultoa
(
unsigned
long
value
,
char
*
string
,
int
radix
);
char
*
ultoa
(
unsigned
long
value
,
char
*
string
,
int
radix
);
...
...
src/wl_dr_a.asm
deleted
100644 → 0
View file @
2419d4f9
This diff is collapsed.
Click to expand it.
src/wl_inter.c
View file @
9520fb90
// WL_INTER.C
/* wl_inter.c */
#include "WL_DEF.H"
#pragma hdrstop
#include "wl_def.h"
//==========================================================================
//==========================================================================
...
...
src/wl_menu.c
View file @
9520fb90
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment