Skip to content

Commit

Permalink
more work on code gen
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Sep 27, 2023
1 parent b5d48c9 commit 19e2cc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jacs_topwriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ namespace jacs {
this.callLinked(p.jdParam, args)
} else if (p.jdKind == microcode.JdKind.NumFmt && p.jdParam == NumFmt.F64) {
// TODO: generalize this to work with other formats
wr.emitBufStore(literal(p.jdParam2, Op.EXPRx_LITERAL_F64),
NumFmt.F64, 0)
const fmt: NumFmt = p.jdParam
const fmt: NumFmt = NumFmt.F64
const sz = bitSize(fmt) >> 3
wr.emitStmt(Op.STMT1_SETUP_PKT_BUFFER, [literal(sz)])
wr.emitBufStore(literal(p.jdParam2, Op.EXPRx_LITERAL_F64),
NumFmt.F64, 0)
this.emitSendCmd(role, actuator.serviceCommand)
} else {
throw "oops"
Expand Down

0 comments on commit 19e2cc2

Please sign in to comment.