diff --git a/client/nb65/d64_upload.s b/client/nb65/d64_upload.s
index b3d2b13..80d996b 100644
--- a/client/nb65/d64_upload.s
+++ b/client/nb65/d64_upload.s
@@ -1,4 +1,6 @@
;use the NB65 API to send a d64 disk via TFTP
+;
+;
.ifndef NB65_API_VERSION_NUMBER
.define EQU =
@@ -17,7 +19,17 @@
jsr print_a
.endmacro
-
+;######### KERNEL functions
+CHKIN = $ffc6
+CHKOUT = $ffc9
+CHRIN = $ffcf
+CHROUT = $ffd2
+CLALL = $FFE7
+CLOSE = $ffc3
+OPEN = $ffc0
+READST = $ffb7
+SETNAM = $ffbd
+SETLFS = $ffba
.bss
current_byte: .res 1
@@ -115,20 +127,30 @@ init:
; main program goes here:
;
+ jsr CLALL
+
+
+; ldx #18
+; stx track
+; ldx #1
+; stx sector
+; ldx #21
+; stx sectors_in_track
+; ldax #sector_buffer
+; jsr send_next_block
+; rts
-
+
@send_1_image:
lda #$93 ;cls
jsr print_a
print #signon_message
- jsr move_to_first_sector
+ jsr reset_counters_to_first_sector
print #enter_filename
ldax #filter_dns ;this is pretty close to being a filter for legal chars in file names as well
jsr get_filtered_input
bcs @no_filename_entered
stax nb65_param_buffer+NB65_TFTP_FILENAME
- lda #15
- jsr open_channel
print #position_cursor_for_track_display
ldax #send_next_block
stax nb65_param_buffer+NB65_TFTP_POINTER
@@ -140,7 +162,7 @@ init:
jmp print_nb65_errorcode
:
lda #15 ; filenumber 15 - command channel
- jsr $FFC3 ; call CLOSE
+ jsr CLOSE
print_cr
print #ok
print #press_a_key_to_continue
@@ -169,10 +191,16 @@ send_next_block:
ldax #$100
rts
@not_last_sector:
+
+; jsr dump_sector ;DEBUG
+
inc sector_buffer_address+1
jsr read_sector
jsr move_to_next_sector
ldax #$200
+
+; jsr dump_sector ;DEBUG
+
rts
@past_last_track:
ldax #$0000
@@ -207,57 +235,6 @@ print_current_sector:
rts
-;open whatever channel is in A
-.bss
- channel_number: .res 1
-.code
-open_channel:
- sta channel_number
- LDA #0 ;zero length filename
- JSR $FFBD ; call SETNAM
- LDA channel_number ; file number
- LDX #$08 ; default to device 8
- LDA channel_number ; secondary address 2
- JSR $FFBA ; call SETLFS
- JSR $FFC0 ; call OPEN
- beq @no_error
- pha
- print #error_opening_channel
- lda channel_number
- call #NB65_PRINT_HEX
- pla
- jsr print_a_as_errorcode
-@no_error:
- rts
-
-
-;send ASCIIZ string in AX to channel Y
-send_string_to_channel:
- sty channel_number
- stax temp_ptr
- ldx channel_number
- jsr $ffc9 ;CHKOUT
- ldy #0
-@send_one_byte:
- lda (temp_ptr),y
- bne @done
- jsr $ffd2 ; call CHROUT (send byte through command channel)
- beq @error
- jmp @send_one_byte
-@done:
- ldx #0 ;send output to screen again
- jsr $ffc9 ;CHKOUT
- rts
-@error:
-pha
- print #error_sending_to_channel
- lda channel_number
- call #NB65_PRINT_HEX
- jsr $ffb7 ;READST
- jsr print_a_as_errorcode
-
- jsr get_key
- rts
dump_sector:
;hex dump sector
@@ -276,44 +253,74 @@ read_sector:
; - requires track and sector values be set first
; sector will be written to address whos value is stored in sector_data
; open the channel file
-
-
-
- jsr make_read_sector_command
- ldax command_buffer
- ldy #15
- jsr send_string_to_channel
- jsr check_error_channel
- lda #2
- jsr open_channel
- LDX #$02 ; filenumber 2
- JSR $FFC6 ; call CHKIN (file 2 now used as input)
- LDA sector_buffer_address
- STA temp_ptr
- LDA sector_buffer_address+1
- STA temp_ptr+1
- LDY #$00
+ jsr make_read_sector_command
+
+ lda #1
+ ldx #
-netboot65 is a project to support network booting C64 and Apple ][computers. It is based on the IP65 TCP/IP stack .
+netboot65 is a project to support network booting C64 and Apple ][computers. It is based on the IP65 TCP/IP stack. Current components are:
+INSPIRATION
- LICENSE
- NETBOOT65 is licensed under the same terms as IP65, the Mozilla Public License Version 1.1.
-For details, please visit http://www.mozilla.org/MPL/
+ NETBOOT65 is licensed under the same terms as IP65, the Mozilla Public License Version 1.1.
SOURCE CODE
- Available at http://sourceforge.net/svn/?group_id=250168
+ Browse online at http://netboot65.svn.sourceforge.net/viewvc/netboot65/ or else download the whole tree through SVN with the following instruction set:
+ svn co https://netboot65.svn.sourceforge.net/svnroot/netboot65 netboot65
AUTHOR
Jonno Downes - jonno@jamtronix.com
diff --git a/doc/README.C64.html b/doc/README.C64.html
index 1a26f6c..02515c3 100644
--- a/doc/README.C64.html
+++ b/doc/README.C64.html
@@ -7,7 +7,7 @@
TO USE WITH VICE
-Run VICE with the nb65_std_cart.bin cartridge image attached (e.g. "x64.exe -cart8 nb65_std_cart.bin")
+Run VICE with the nb65_std_cart.bin cartridge image attached (e.g. "x64.exe -cart8 nb65_std_cart.bin")
TO USE WITH A REAL C64
Option 1 - Hardcore
@@ -16,7 +16,6 @@ Run VICE with the nb65_std_cart.bin cartridge image attached (e.g. "x64.exe -car
Option 2 - Just dabbling
You can just run the nb65_c64_ram.prg program (which is essentially the cartridge image plus a loader prg to insert the image into the right place in RAM).
-
USING THE CARTRIDGE
When the cartridge starts, it will attempt to configure the IP stack via DHCP. If the DHCP config fails (either by timing out, or the user press RUN/STOP)
@@ -55,12 +54,11 @@ Due to a limitation in the menu selection code, only the first 128 PRG files in
LICENSE
- NETBOOT65 is licensed under the same terms as IP65, the Mozilla Public License Version 1.1.
-For details, please visit http://www.mozilla.org/MPL/
-
+NETBOOT65 is licensed under the same terms as IP65, the Mozilla Public License Version 1.1.
SOURCE CODE
- Available at http://sourceforge.net/svn/?group_id=250168
+ Browse online at http://netboot65.svn.sourceforge.net/viewvc/netboot65/ or else download the whole tree through SVN with the following instruction set:
+ svn co https://netboot65.svn.sourceforge.net/svnroot/netboot65 netboot65
AUTHOR
Jonno Downes - jonno@jamtronix.com
diff --git a/doc/netboot65.html b/doc/netboot65.html
index f686e3d..a8502b2 100644
--- a/doc/netboot65.html
+++ b/doc/netboot65.html
@@ -79,7 +79,14 @@ td {
netboot65
+
+
svn co https://netboot65.svn.sourceforge.net/svnroot/netboot65 netboot65+