Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Feb 5, 2024
1 parent 794324b commit 2e28a26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ $(OBJECTS8): $(SOURCES8)
@mkdir target/telestrat/lib/ -p
@$(AS) -ttelestrat $(@:.o=.s) -o $@ --include-dir src/include
@$(AR) r ch395-8.lib $@
@cp ch395-8.lib target/telestrat/lib/
@mkdir build
@cp ch395-8.lib build/lib8/

tool:
@mkdir -p target/telestrat/ch395cfg/
Expand Down
13 changes: 12 additions & 1 deletion src/6502/_ch395_set_des_port_sn.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
.export _ch395_set_des_port_sn
.export ch395_set_des_port_sn


.proc ch395_set_des_port_sn
;;@brief Set dest port socket
;;@inputA Socketid
;;@inputY Low int
;;@inputX high int
;;@```ca65
;;@` lda #$01
;;@` ldx #80
;;@` ldx #$00
;;@` jsr ch395_set_des_port_sn
;;@` rts
;;@```
sty ptr1
stx ptr1+1

Expand All @@ -28,6 +38,7 @@ entry_point_c:

.proc _ch395_set_des_port_sn
;;@proto void ch395_set_des_port_sn(unsigned int port, unsigned char ID_SOCKET);
;;@brief Set dest port socket
;;@inputPARAM_socketid The socketid
pha
jsr popax ; get port
Expand Down

0 comments on commit 2e28a26

Please sign in to comment.