aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/words/slash.asm
blob: 3f0e3af8c14d5e5702a2bc9f4b83e72bfacef3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; ( n1 n2 -- n3) 
; Arithmetics
; divide n1 by n2. giving the quotient

.if cpu_msp430==1
    HEADER(SLASH,1,"/",DOCOLON)
.endif

.if cpu_avr8==1


VE_SLASH:
    .dw $ff01
    .db "/",0
    .dw VE_HEAD
    .set VE_HEAD = VE_SLASH
XT_SLASH:
    .dw DO_COLON
PFA_SLASH:
.endif
    .dw XT_SLASHMOD
    .dw XT_NIP
    .dw XT_EXIT