git-svn-id: http://svn.code.sf.net/p/netboot65/code@118 93682198-c243-4bdb-bd91-e943c89aac3b

This commit is contained in:
jonnosan 2009-04-17 11:21:00 +00:00
parent 76612411e4
commit e4943550f5
2 changed files with 10 additions and 2 deletions

View File

@ -144,10 +144,11 @@ init_failed:
tax tax
dey dey
lda (nb65_params),y lda (nb65_params),y
jsr dns_set_hostname jsr dns_set_hostname
bcc @dns_error bcs @dns_error
jsr dns_resolve jsr dns_resolve
bcs @dns_error bcs @dns_error
ldy #NB65_DNS_HOSTNAME_IP ldy #NB65_DNS_HOSTNAME_IP
ldx #4 ldx #4
@copy_dns_ip: @copy_dns_ip:
@ -300,6 +301,7 @@ init_failed:
iny iny
lda tftp_filesize+1 lda tftp_filesize+1
sta (nb65_params),y sta (nb65_params),y
.byte $92
clc clc
@tftp_error: @tftp_error:
rts rts

View File

@ -156,6 +156,9 @@ init:
stax nb65_param_buffer+NB65_TFTP_POINTER stax nb65_param_buffer+NB65_TFTP_POINTER
ldax #nb65_param_buffer ldax #nb65_param_buffer
call #NB65_TFTP_CALLBACK_UPLOAD call #NB65_TFTP_CALLBACK_UPLOAD
bcc :+
jmp print_errorcode
:
@download_test: @download_test:
@ -174,6 +177,9 @@ init:
stax nb65_param_buffer+NB65_TFTP_POINTER stax nb65_param_buffer+NB65_TFTP_POINTER
ldax #nb65_param_buffer ldax #nb65_param_buffer
call #NB65_TFTP_CALLBACK_DOWNLOAD call #NB65_TFTP_CALLBACK_DOWNLOAD
bcc :+
jmp print_errorcode
:
lda #'$' lda #'$'
jsr print_a jsr print_a
lda nb65_param_buffer+NB65_TFTP_FILESIZE+1 lda nb65_param_buffer+NB65_TFTP_FILESIZE+1