* mikeOS 16 bit and amd64 baremetal
[mascara-docs.git] / amd64 / bareMetalOS-0.5.2 / baremetal0.5.2 / programs / filetest.asm
blob01a9ef24521724cf7710165ab661cbf496f06d57
1 ; -----------------------------------------------------------------
2 ; EthTool v0.1 - Ethernet debugging tool
3 ; Ian Seyler @ Return Infinity
4 ; -----------------------------------------------------------------
7 [BITS 64]
8 [ORG 0x0000000000200000]
10 %INCLUDE "bmdev.asm"
12 filetest:
13 mov rsi, startstring
14 call b_print_string
16 mov rcx, 4000000
17 mov rsi, DataBuffer
18 mov rdi, file1
19 call b_file_write
20 mov rsi, file1
21 call b_print_string
22 call b_print_newline
24 mov rcx, 4000000
25 mov rsi, DataBuffer
26 mov rdi, file2
27 call b_file_write
28 mov rsi, file2
29 call b_print_string
30 call b_print_newline
32 mov rcx, 4000000
33 mov rsi, DataBuffer
34 mov rdi, file3
35 call b_file_write
36 mov rsi, file3
37 call b_print_string
38 call b_print_newline
40 mov rcx, 4000000
41 mov rsi, DataBuffer
42 mov rdi, file4
43 call b_file_write
44 mov rsi, file4
45 call b_print_string
46 call b_print_newline
48 mov rsi, endstring
49 call b_print_string
51 ret
52 ; -----------------------------------------------------------------
54 startstring: db 'Start', 13, 0
55 endstring: db 'End', 13, 0
56 file1: db 'tst1.app', 0
57 file2: db 'tst2.app', 0
58 file3: db 'tst3.app', 0
59 file4: db 'tst4.app', 0
61 DataBuffer: db 0xCA, 0xFE